strapi-ejs

3.0.0-alpha.4.1 • Public • Published

strapi-ejs

npm version npm downloads npm dependencies Build status Slack status

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 Strapi 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

Links

Readme

Keywords

Package Sidebar

Install

npm i strapi-ejs

Homepage

strapi.io

Weekly Downloads

4

Version

3.0.0-alpha.4.1

License

MIT

Last publish

Collaborators

  • baronvoninternet
  • remidej
  • marc-roig-strapi
  • pierreburgy
  • aurelsicoko
  • alexandrebodin
  • convly