@hamistudios/crather
v2.0.2
Published
a simple nodejs render engine
Downloads
6
Maintainers
Readme
Features:
- Can be used to seamlessly with
express
to render views - Supports templates and scripts to create dynamic content
- Can be used as a standalone render engine which is great for HTML emails
- Can be used to process any file type HTML, CSS, Text you name it
Installation
$ npm install --save @hamistudios/crather
Quick start
<!-- 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.
Documentation
You can view all documentation on the crather website.
- Getting started
- Guides
- Reference
- Changelog