Micro
Description
A tiny template engine, with javascript execution isolation.
Purpose
Just for fun.
Installation
[sudo] npm i micro-engine
Usage API
Calling the module
var micro = ;
Definition
var content = ;
Compile
content;// Hello World!
Run
var content = ;content; // { // firstValue: 2, // secondValue: 3, // result: 5, // _compiled: "var result = 2 + 3;" // }
Render
var content = ;content; // 5, 2, 3
Working with files
some-file.mic
-------------
{{ var result = firstValue + secondValue; }}
var content = micro;content; // 5, 2, 3
License
Under BSD