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

    1.1.1 • Public • Published

    Themeleon Mustache

    Mustache 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-mustache": "1.*"
      }
    }

    Usage

    Say we have the following theme structure:

    views/
      foo/
        bar.mustache
      foo.mustache
      index.mustache
    
    var themeleon = require('themeleon')();
     
    // Use the Mustache mixin
    themeleon.use('mustache');
     
    // Or inject your own instance
    themeleon.use('mustache', require('mustache'));
     
    module.exports = themeleon(__dirname, function (t) {
      // Render index alone
      t.mustache('views/index.mustache', 'index.html');
     
      // Or include a partials object
      t.mustache('views/index.mustache', 'index.html', {
        foo: 'views/foo.mustache',
        'foo/bar': 'views/foo/bar.mustache',
      });
     
      // Or let the mixin resolve all `.mustache` files in `views`
      // Note: `.mustache` and `.mst` extensions are supported.
      t.mustache('views/index.mustache', 'index.html', 'views');
    });

    Keywords

    none

    Install

    npm i themeleon-mustache

    DownloadsWeekly Downloads

    1

    Version

    1.1.1

    License

    Unlicense

    Last publish

    Collaborators

    • avatar
    • avatar