A few months ago I decided to turn my existing, rather big and complex multi-page web2py app into a single page app. The plan is to load all the existing pages using web2py_component into the div#main_region, so that I get a working application as soon as possible, but then start to move view logic to the client, eventually calling web2py only for json data, and building the client pages using some kind of library of framework.
I was already using jquery and bootstrap a lot (plus handsontable, ckeditor, jqplot...), so I had to use a library/framework compatible with that, and I didn't even consider angular and ember, since they seem to have their own way for doing everything. I did consider backbone+marionette, but I felt I was back to the Java days, writing a lot of code and getting nothing in return. I also felt like I had to duplicate work that was already done in web2py. Ractive definitely seems a better match fo web2py+jquery, to my limited experience, if you find a good way to organize your code. I found the following tutorial extremely helpful (it has 6 parts, I recommend you read at least the first 4 parts): http://paquitosoftware.com/ractive-js-tutorial-setting-up-your-environment/ It shows how to use ractive, webpack, page.js for routing, and proposes a nice folder structure for your code. It also shows you how to take advantage of webpack to compile ES6 into javascript real time, and you could use a similar trick for coffescript or something you like better than plain old javascript. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.