https://github.com/jstransformers/jstransformer-twig
Twig.js support for JSTransformers.
https://github.com/jstransformers/jstransformer-twig
Last synced: 12 months ago
JSON representation
Twig.js support for JSTransformers.
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-twig
- Owner: jstransformers
- License: mit
- Created: 2015-07-22T06:30:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2024-09-06T04:03:13.000Z (almost 2 years ago)
- Last Synced: 2025-05-23T07:39:30.335Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://npm.im/jstransformer-twig
- Size: 163 KB
- Stars: 2
- Watchers: 6
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-twig
[Twig.js](https://github.com/justjohn/twig.js) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-twig)
[](https://codecov.io/gh/jstransformers/jstransformer-twig)
[](https://www.npmjs.org/package/jstransformer-twig)
## Installation
npm install jstransformer-twig
## API
```js
var twig = require('jstransformer')(require('jstransformer-twig'))
twig.render('Hello, {{ name }}!', { name: 'World' }).body
//=> 'Hello, World!'
```
## License
MIT