Skip to content

jstransformers/jstransformer-absurd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jstransformer-absurd

Absurd support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

Installation

npm install jstransformer-absurd

API

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
//=> '<h1>Hello World!</h1>'

License

MIT