Wondering what’s next for npm?Check out our public roadmap! »

    This package has been deprecated

    Author message:

    This is native with Themeleon 3.0

    themeleon-nunjucks

    0.1.2 • Public • Published

    Themeleon Nunjucks

    Nunjucks mixin for Themeleon.

    Warning: this repository/package is deprecated, template engines will be handled by consolidate.js in Themeleon 3.0.

    Installation

    In your package.json:

    {
      "dependencies": {
        "themeleon": "1.*",
        "themeleon-nunjucks": "1.*"
      }
    }

    Usage

    var themeleon = require('themeleon')();
     
    // Use the Nunjucks mixin
    themeleon.use('nunjucks');
     
    // Or inject your own instance
    themeleon.use('nunjucks', require('nunjucks'));
     
    module.exports = themeleon(__dirname, function (t) {
      // Configure Nunjucks views basePath and options.
      // See https://mozilla.github.io/nunjucks/api.html#configure
      t.nunjucks.configure('views', options);
      // Compile a Nunjucks view as `index.html` in destination directory
      t.nunjucks('index.html', 'dist/index.html');
    });

    Keywords

    none

    Install

    npm i themeleon-nunjucks

    DownloadsWeekly Downloads

    3

    Version

    0.1.2

    License

    Unlicense

    Last publish

    Collaborators

    • avatar
    • avatar