1.0.0-beta.3 • Published 4 years ago

pug-mixin-output v1.0.0-beta.3

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

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);

See Pug Reference