pug-mixin-output
v1.0.0-beta.3
Published
```bash yarn add pug-mixin-output ```
Downloads
1
Readme
Pug Plugin Capture Mixin Output
yarn add pug-mixin-output
npm install --save pug-mixin-output
Captures the output of a mixin into a JS variable.
How to use:
- const output = +someMixin(arg1, arg2, arg3)
.output-container
!= output
Installation:
import * as pugMixinOutput from 'pug-mixin-output';
const pugMixinOutput = require('pug-mixin-output');
// Then add the plugin to the pug options plugin section.
const options = {
plugins: [
pugMixinOutput,
]
}
pug.compile('string of pug', options);