https://github.com/jstransformers/jstransformer-swig
Swig support for JSTransformers.
https://github.com/jstransformers/jstransformer-swig
Last synced: 11 months ago
JSON representation
Swig support for JSTransformers.
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-swig
- Owner: jstransformers
- License: mit
- Created: 2015-02-18T15:01:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T02:55:36.000Z (about 6 years ago)
- Last Synced: 2024-11-06T13:57:19.443Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://npmjs.com/jstransformer-swig
- Size: 66.4 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-swig
[swig-templates](https://www.npmjs.com/package/swig-templates) support for [JSTranformers](https://github.com/jstransformers/jstransformer).
[](https://travis-ci.org/jstransformers/jstransformer-swig)
[](https://codecov.io/gh/jstransformers/jstransformer-swig)
[](http://david-dm.org/jstransformers/jstransformer-swig)
[](https://greenkeeper.io/)
[](https://www.npmjs.org/package/jstransformer-swig)
## Installation
npm install jstransformer-swig
## API
```js
var swig = require('jstransformer')(require('jstransformer-swig'))
var locals = { title: "Hello World" }
swig.render('
{{ title }}
', locals).body
//=> 'Hello World!
'
```
## License
MIT