In Strapi, views are markup templates that are compiled on the server into HTML pages. In most cases, views are used as the response to an incoming HTTP request.
-`map`: Object mapping extension names to engine names.
-`default`: Default extension name to use when missing.
-`cache`: When `true` compiled template functions will be cached in-memory, this prevents subsequent disk I/O, as well as the additional compilation step that most template engines peform. By default this is enabled when the `NODE_ENV` environment variable is anything but `development`, such as `stage` or `production`.
Notes:
- Set to `false` to disable views support.
- Views are defined in your application's `./views` directory.
- You still need to install the engines you wish to use, by adding them to your `package.json` dependencies.
## Usage
Simply use `this.render` instead of `this.body` to render a view.
You don't need to specify the view extension if you use the default one sets in config.
Using the config we wrote above with `lodash` for `.html` files and use the `html` extension by default, this example will render `./views/user.html` with Lodash as template engine.