Edit Page

config/views.js

This file is where Sails looks to find out which templating engine to use when rendering server side HTML templates. By default Sails uses ejs, but any view engine can be used by changing the extension and supplying a getRenderFn value (see the view engine documentation for more info).

Usage

#

See sails.config.views for all available options.

Want to see for yourself?

An example of this file can be found in our sample app repo, here.

Anatomy of a Sails App