Lines Matching +full:v +full:- +full:gen
1 # pug-code-gen
3 Default code-generator for pug. It generates HTML via a JavaScript template function.
5 <!-- [](https://travis-…
6 …atus](https://david-dm.org/pugjs/pug/status.svg?path=packages/pug-code-gen)](https://david-dm.org/…
7 [](https://www.npmjs.org/package/pug-c…
11 npm install pug-code-gen
16 var generateCode = require('pug-code-gen');
27 - pretty (boolean): default is `false`
28 - compileDebug (boolean): default is `true`
29 - doctype (string): default is `undefined`
30 - inlineRuntimeFunctions (boolean): default is `false`
31 - globals (array of strings): default is `[]`
32 - self (boolean): default is `false`
34 In addition to above, `pug-code-gen` has the following unique options:
36 …- includeSources (object): map of filename to source string; used if `compileDebug` is `true`; def…
37 - templateName (string): the name of the generated function; default is `'template'`
40 var lex = require('pug-lexer');
41 var parse = require('pug-parser');
42 var wrap = require('pug-runtime/wrap');
43 var generateCode = require('pug-code-gen');