@knapsack/renderer-twig
TypeScript icon, indicating that this package has built-in type declarations

4.71.18 • Public • Published
npm install @knapsack/renderer-twig --save

Usage

In knapsack.config.js:

The config passed into new TwigRenderer() is passed directly to @basalt/twig-renderer, see there for config details.

const HtmlRenderer = require('@knapsack/renderer-html');

const config = {
  // rest of config here
  templates: [
    new TwigRenderer({
      src: {
        roots: ['./assets/patterns'],
        namespaces: [{
          id: 'components',
          recursive: true,
          paths: ['./assets/patterns'],
        }],
      }
    }),
  ],
};

module.exports = config;

Readme

Keywords

none

Package Sidebar

Install

npm i @knapsack/renderer-twig

Weekly Downloads

1,429

Version

4.71.18

License

none

Unpacked Size

240 kB

Total Files

19

Last publish

Collaborators

  • evanlovely
  • illepic
  • jfrenette