I am working on a highly dynamic site which has around 10 different pages (login, registration, my services, my profile, etc.).
I am thinking of using a javascript template framework (e.g., jquery-temp) and store all the pages in one single html file. User interactions will trigger swapping/activating/hiding of different templates. On the server side, all the request are managed through rest/json calls. I am thinking that the html will be served by nginx while the json calls are directed to jetty (java).
Is this a viable approach and what can go wrong ?
Thanks,
EDIT – I know how to do this, I want to know if this is will cause a problem in the long run.
I’ve been doing something similar recently, and it’s working out pretty well. Couple of observations: