0.3.0 • Published 7 years ago

pug-plugin-modules v0.3.0

Weekly downloads
44
License
MIT
Repository
github
Last release
7 years ago

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)

0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago