title: Single HTML site using only client side templates and Rest calls
body: <p>I am working on a highly dynamic site which has around 10 different pages (login, registration, my services, my profile, etc.). </p>
  
  <p>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).  </p>
  
  <p>Is this a viable approach and what can go wrong ? </p>
  
  <p>Thanks,</p>
  
  <p><strong>EDIT</strong> - I know how to do this, I want to know if this is will cause a problem in the long run.</p>