pug-source-gen
Generate Pug sources from a Pug AST. The resultant source may be different from the original Pug source, but the rendered output should be the same.
Installation
npm install pug-source-gen
Usage
var lex = ;var parse = ;var genSource = ; var source = `include a mixin myMixin(arg) block p&attributes(attributes) Paragraph: #[strong= arg] html head body p.klass(attr falseattr=false class=['myClass']) Introduction +myMixin('Content').klass2 h1 Heading`;var ast = ; var generatedSource = ;// =>// include a// mixin myMixin(arg)// block// p&attributes(attributes) Paragraph: #[strong= arg]// html// head// body// p.klass(attr falseattr=false class=['myClass']) Introduction// +myMixin('Content').klass2// h1 Heading
License
MIT