3.2.2 • Published 4 months ago

@basalt/twig-renderer v3.2.2

Weekly downloads
2,024
License
MIT
Repository
github
Last release
4 months ago

Twig Renderer

Greenkeeper badge

Render templates using Twig PHP, via this Node JS renderer.

Special thanks to Salem Ghoweri for collaboration on this project!

How to Use

npm install --save @basalt/twig-renderer
const TwigRenderer = require('@basalt/twig-renderer');

const config = { 
  // see `./config.schema.js` for details
};

const twigRenderer = new TwigRenderer(config);

twigRenderer.render('@components/card.twig', { title: 'hi' }).then(results => {
  if (results.ok) {
    console.log(results.html);
  } else {
    console.log(results.message);
  }
});

Looking in tests folder can help.

How to Develop

npm install
composer install
npm run setup
3.2.2

4 months ago

3.2.1

4 months ago

3.2.0

4 months ago

3.1.0

4 months ago

3.0.2

4 months ago

2.2.1

6 months ago

2.2.0

6 months ago

2.1.1

6 months ago

3.0.1

6 months ago

3.0.0

6 months ago

2.1.0

3 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.13.1

4 years ago

0.13.2

4 years ago

0.13.0

4 years ago

0.12.2

5 years ago

0.12.1

5 years ago

0.12.0

5 years ago

0.11.0

5 years ago

0.10.3

5 years ago

0.10.2

6 years ago

0.10.1

6 years ago

0.10.0

6 years ago

0.9.2

6 years ago

0.9.1

6 years ago

0.9.0

6 years ago

0.8.0

6 years ago

0.7.3

6 years ago

0.7.3-0

6 years ago

0.7.2

6 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.2

6 years ago

0.6.1

6 years ago