$ yarn add @rsm/fractal-pug-adapter
Inside your Fractal configuration (fractal.config.js
or something like that):
fractal.components.engine('@rsm/fractal-pug-adapter');
If you want to extend the Pug complier options or add globals to the Pug templates:
const pugAdapter = require('@rsm/fractal-pug-adapter');
fractal.components.engine(pugAdapter({
options: {
doctype: 'xml', // A pug options
foo: 'bar', // A custom global
},
}));
- Add support for tenant context (only with
@rsm/kuchenblech
)
- Support high level context reference
- Resolve context everytime
- Resolve context on includes
- Refactor apdater
- First release
MIT © ressourcenmangel GmbH