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

4.71.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

2,335

Version

4.71.12

License

none

Unpacked Size

238 kB

Total Files

19

Last publish

Collaborators

  • jfrenette
  • illepic
  • evanlovely