a simple nodejs render engine
a simple nodejs render engine
express
to render views
$ npm install --save @hamistudios/crather
<!-- example.crather -->
<h1>{{ message }}</h1>
// index.js
const Crather = require('@hamistudios/crather');
let crather = new Crather({
data: {
message: 'Hello World'
}
});
crather.parse('./example.crather', function(err, result) {
if(err) console.error(err);
else console.log(result.getRendered());
});
Output:
<h1>Hello World</h1>
For more help and information head over to our website.
You can view all documentation on the crather website.
Getting started
Guides
Reference