mobileapi-ejs
v1.0.4
Published
EJS hook for the mobileapi framework
Downloads
6
Readme
mobileapi-ejs
This built-in hook allows you to use the EJS template engine with custom options.
How To use
To configure your hook with custom options, you need to edit your ./config/hooks.json
file in your mobileapi app.
{
hooks: {
...
websockets: true,
ejs: {
layout: layout, // Global layout file (default: layout)(set false to disable layout)
viewExt: ejs, // View file extension (default: ejs)
cache: true, // Cache compiled templates (default: true).
debug: true // Debug flag (default: false)
}
...
}
}