https://github.com/jstransformers/jstransformer-absurd
AbsurdJS support for JSTransformers.
https://github.com/jstransformers/jstransformer-absurd
Last synced: 4 months ago
JSON representation
AbsurdJS support for JSTransformers.
- Host: GitHub
- URL: https://github.com/jstransformers/jstransformer-absurd
- Owner: jstransformers
- License: mit
- Created: 2015-04-11T00:40:25.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T03:06:54.000Z (almost 2 years ago)
- Last Synced: 2025-10-06T21:56:24.474Z (8 months ago)
- Language: JavaScript
- Homepage: http://npm.im/jstransformer-absurd
- Size: 69.3 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.md
Awesome Lists containing this project
README
# jstransformer-absurd
[Absurd](http://absurdjs.com) support for [JSTransformers](http://github.com/jstransformers).
[](https://travis-ci.org/jstransformers/jstransformer-absurd)
[](https://codecov.io/gh/jstransformers/jstransformer-absurd)
[](http://david-dm.org/jstransformers/jstransformer-absurd)
[](https://www.npmjs.org/package/jstransformer-absurd)
## Installation
npm install jstransformer-absurd
## API
```js
var absurd = require('jstransformer')(require('jstransformer-absurd'))
var input = "h1: Hello <% name %>!";
var options = {
"morph": "html",
"type": "yaml"
};
var locals = {
"name": "World"
};
absurd.render(input, options, locals).body
//=> '
Hello World!
'
```
## License
MIT