Lines Matching refs:pug
1 # pug-load
3 …pug loader is responsible for loading the depenendencies of a given pug file. It adds `fullPath` …
5 …Build Status](https://img.shields.io/travis/pugjs/pug-load/master.svg)](https://travis-ci.org/pugj…
6 …tus](https://david-dm.org/pugjs/pug/status.svg?path=packages/pug-load)](https://david-dm.org/pugjs…
7 …s](https://david-dm.org/pugjs/pug/dev-status.svg?path=packages/pug-load)](https://david-dm.org/pug…
8 [](https://www.npmjs.org/package/pug-load)
9 …tatus](https://img.shields.io/codecov/c/github/pugjs/pug-load.svg)](https://codecov.io/gh/pugjs/pu…
13 npm install pug-load
18 var load = require('pug-load');
39 Callback used by `pug-load` to resolve the full path of an included or extended file given the path…
43 This function is not meant to be called from outside of `pug-load`, but rather for you to override.
47 Callback used by `pug-load` to return the contents of a file.
51 This function is not meant to be called from outside of `pug-load`, but rather for you to override.
55 Callback used `pug-load` to ensure the options object is valid. If your overriden `load.resolve` or…
57 This function is not meant to be called from outside of `pug-load`, but rather for you to override.
63 var lex = require('pug-lexer');
64 var parse = require('pug-parser');
65 var load = require('pug-load');
69 var str = fs.readFileSync('bar.pug', 'utf8');
70 var ast = load(parse(lex(str, 'bar.pug'), 'bar.pug'), {
81 var str = fs.readFileSync('bar.pug', 'utf8');
82 var ast = load.string(str, 'bar.pug', {
93 var ast = load.file('bar.pug', {