Comment on page
We briefly introduced you to views when we discussed binding actions to static views in the router definition. Views are well-defined, reusable representation of a response to a request. Views can be static—meaning there are no variable definitions in the view, or dynamic—meaning there are variable portions in the view.
All views are located in
- 1.Install the node module for the template engine you plan to use for your view type; and
- 2.The extension of the view must match the name of its corresponding template engine.
Blueprint will automatically configure Express to support the different kinds of views located in
app/views. There is no need to manually register the different template engines with Express.