https://github.com/jstransformers/jstransformer-qejs
QEJS support for JSTransformers.
https://github.com/jstransformers/jstransformer-qejs
Last synced: over 1 year ago
JSON representation
QEJS support for JSTransformers.
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-qejs
- Owner: jstransformers
- License: mit
- Created: 2015-04-11T09:46:41.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T03:06:30.000Z (about 6 years ago)
- Last Synced: 2025-02-22T04:16:58.089Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://npm.im/jstransformer-qejs
- Size: 52.7 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-qejs
[QEJS](http://github.com/jepso/QEJS) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-qejs)
[](https://codecov.io/gh/jstransformers/jstransformer-qejs)
[](http://david-dm.org/jstransformers/jstransformer-qejs)
[](https://www.npmjs.org/package/jstransformer-qejs)
## Installation
npm install jstransformer-qejs
## API
```js
var qejs = require('jstransformer')(require('jstransformer-qejs'))
var template = 'Hello, <%- name %>!'
var locals = {
name: 'World'
}
qejs.renderAsync(template, locals, function(err, data) {
data.body
//=> 'Hello World!'
});
```
## License
MIT