0.4.3 • Published 3 years ago

pug-include-glob v0.4.3

Weekly downloads
250
License
MIT
Repository
github
Last release
3 years ago

Build Status

pug-include-glob

Use glob patterns in your Pug include directives.

Installation

$ npm install --save pug-include-glob

Usage

const pugIncludeGlob = require('pug-include-glob');
const pug = require('pug');

let html = pug.renderFile('path/to/template.pug', {
  plugins: [ pugIncludeGlob({ /* options */ }) ]
});

Express

res.render('view_name', { plugins: [ pugIncludeGlob({ /* options */ }) ] })

Gulp

gulp.src(src)
  .pipe(pug({ plugins: [ pugIncludeGlob({ /* options */ }) ] }))
  .pipe(gulp.dest(dest));

Options

  • glob - Options object passed to node-glob methods. See node-glob for details.
  • ignore - Files that should not be checked by this plugin. Checking every file is time expensive so excluding files where possible is likely to improve performance.

License

MIT © Jack Conway

0.4.3

3 years ago

0.4.2

5 years ago

0.4.1

5 years ago

0.4.0

5 years ago

0.3.3

7 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.0.1

8 years ago