Template rendering middleware.
(require("Middleware_Views"))( [options], app)
Initiate the views middleware
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
options |
Object |
<optional> |
Template options |
app |
Routable | The owner app module |
- Source:
- middlewares/views.js
Properties:
Name | Type | Argument | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
options.extension |
string |
<optional> |
Default extension for your views |
||||||||
options.map |
Object |
<optional> |
Extensions to engines map |
||||||||
options.options |
Object |
<optional> |
View state locals Properties
|