Nabbing Pleasant Monads

    pug-plugin-modules

    0.3.0 • Public • Published

    npm npm

    pug-plugin-modules

    Pug plugin for resolving templates in node_modules

    Installation

    npm install pug-plugin-modules
    

    Import plugin:

    const modulesPlugin = require('pug-plugin-modules');
    

    then, in your Pug options object:

    {
      plugins: [
        modulesPlugin(/*options*/)
      ]
    }
    

    Usage

    The same options as resolve are available. PugPluginModules provides the following defaults:

    • baseDir = directory of source file
    • extensions = ['.pug', '.jade']
    • packageFilter = will first search for "pug" and then "main" in package.json

    License

    MIT (http://www.opensource.org/licenses/mit-license.php)

    Keywords

    none

    Install

    npm i pug-plugin-modules

    DownloadsWeekly Downloads

    8

    Version

    0.3.0

    License

    MIT

    Last publish

    Collaborators

    • markbrouch