_/\_ MERLIN-ENGINE _/\_
Merlin is a generical file creator that uses templates and JSON data to generate dynamic files. It can be used to build scafolding tools and mock data based on templates.npm install -g merlin-engine
A full command example:
merlin create --values '{ "name": "Header" }' --template ./example/classComponentTemplate.js --output './example/Header.js
-
values
: a JSON like string with values to fill the template -
template
: a template file thatmerlin
uses to generate the final file. The template file must be written using the JavaScript Template String specs. Butmerlin
doesn't care about the extension files that you will generate. Just write the templates and use the right extensions and you will be able to generate python, ruby or whatever you want to. -
output
: the relative path thatmerlin
will write the output file.
merlin-engine is released under the MIT License