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

    Install

    npm i strapi-ejs

    Homepage

    strapi.io

    DownloadsWeekly Downloads

    3

    Version

    3.0.0-alpha.4.1

    License

    MIT

    Last publish

    Collaborators

    • lauriejim
    • pierreburgy
    • aurelsicoko
    • hichamelbsi
    • alexandrebodin
    • petersg83
    • convly