I am looking to develop an web application which is basically one page and I am little confused regarding two things.
- Now I am little confused as to what should my response from server-side(i.e node.js) be? I wanted to mostly response with json and then render them in client-side using javascript templates but one more option is to to render templates from server-side itself and just let the client javascript just load it and put into place.
What are the advantages and dis-advantages of each of the methods?(speed is a criteria I would value a lot).
- And should I send json from browser using ajax to the server or built forms and send forms?. I am leaning towards json but still wanted to know which one would be better.
You can be descriptive in your answer.
Help me. Thanks.