data2code
v0.0.7
Published
Codegenerator for data
Downloads
7
Readme
data to code generator
- This module generate code from a javascript Object
- It uses Handlebars templates
- It's primary use is to make code from raml-js-parser
Defining a Generator
##Usage
var data2Code = require('data2Code');
var gen = {
template: {'readme.md' : '{{title}}'
}
var results = data2Code.process(sampleData, gen)