pug-pug
v0.0.3
Published
Pug filter for pug
Downloads
4
Readme
Setup filter
const pug = require('pug');
pug.filters.pug = require('pug-pug')();
Set filename for pug when render
pug.filters.pug = require('pug-pug')(function (pugOptions, options) {
pugOptions.filename = options.filename;
});
Use filter
:pug
div Message for pug filter.
Output:
<script type="text/html"><div>Message for pug filter.</div></script>
Pretty render.
:pug(pretty=true)
div Message for pug filter.
Output:
<script type="text/html">
<div>Message for pug filter.</div>
</script>