1.0.0-beta.3 • Published 6 years ago
pug-mixin-output v1.0.0-beta.3
Pug Plugin Capture Mixin Output
yarn add pug-mixin-outputnpm install --save pug-mixin-outputCaptures the output of a mixin into a JS variable.
How to use:
- const output = +someMixin(arg1, arg2, arg3)
.output-container
!= outputInstallation:
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);