0.5.0 • Published 5 years ago

@rsm/fractal-pug-adapter v0.5.0

Weekly downloads
70
License
MIT
Repository
-
Last release
5 years ago

Fractal Pug Adapter

Use Pug templates inside Fractal

Install

$ yarn add @rsm/fractal-pug-adapter

Usage

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

Changelog

0.5.0

  • Add support for tenant context (only with @rsm/kuchenblech)

0.4.0

  • Support high level context reference

0.3.1

  • Resolve context everytime

0.3.0

  • Resolve context on includes

0.2.0

  • Refactor apdater

0.1.0

  • First release

License

MIT © ressourcenmangel GmbH

0.5.0

5 years ago

0.4.0

5 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago