Given that there is a single HTML View in our app, we will need to attach data to that page so that the template that is being rendered can be included in such a way that the dynamic areas of the page are replaced with the real content. To do this, we will need to generate a View model. During the rendering, the template engine will parse the template itself and look for a special syntax that indicates that specific sections should be replaced with values from the View model itself at runtime. We saw examples of this when we explored the Handlebars template framework in the preceding chapter. Think of this as a fancy runtime find and replace of your HTML templates--finding variables and replacing them with values stored in the View model sent to the template.
View models
This process happens at the server, and the result is only sent as a response to the HTTP request that our...