Hi I have few experiences with pyramid traversal and angularjs as front end. Now before starting my new project there's a question in my mind bugging me: Is it a good practice to define and config just one view on server side for angularjs single-page-app? Since my server app just feed client with json data and client app takes care of templates, showing proper urls in address bar and loading static resources, so wouldn't it better to have just one view callable on server app to take care of every client request based on sent data? for example: // to get a customer with id=120 : var params = {key: "customer", id:120}; $.ajax("get_data", params, {...});
// or get a customer order : var params = {key: "customer_order", cid:120, oid:10}; $.ajax("get_data", params, {...}); And on server view: def get_data(context, request): key = request.request.POST.get("key") if key == "customer": # call proper function elif key == "customer_order" ... -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discuss+unsubscr...@googlegroups.com. To post to this group, send email to pylons-discuss@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/f47df61d-92e7-4d35-9123-8b11864dc5aa%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.