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

4.45.12 • 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,722

Version

4.45.12

License

none

Unpacked Size

190 kB

Total Files

18

Last publish

Collaborators

  • jfrenette
  • illepic
  • evanlovely