3.0.1 • Published 6 years ago

mwapi-ejs v3.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

mwapi-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 mwapi 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)
    }
    ...
  }
}

Resources