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

4.79.2 • 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;

/@knapsack/renderer-twig/

    Package Sidebar

    Install

    npm i @knapsack/renderer-twig

    Weekly Downloads

    3,210

    Version

    4.79.2

    License

    none

    Unpacked Size

    257 kB

    Total Files

    20

    Last publish

    Collaborators

    • evanlovely
    • illepic
    • jfrenette