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

/strapi-ejs/

    Package Sidebar

    Install

    npm i strapi-ejs

    Homepage

    strapi.io

    Weekly Downloads

    1

    Version

    3.0.0-alpha.4.1

    License

    MIT

    Last publish

    Collaborators

    • tdfka_rick
    • markkaylor
    • marc-roig-strapi
    • lauriejim
    • pierreburgy
    • aurelsicoko
    • alexandrebodin
    • convly