npm

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

4.71.5 • 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

413

Version

4.71.5

License

none

Unpacked Size

234 kB

Total Files

19

Last publish

Collaborators

  • jfrenette
  • illepic
  • evanlovely