@hamistudios/crather

2.0.2 • Public • Published

crather

a simple nodejs render engine

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.

Package Sidebar

Install

npm i @hamistudios/crather

Weekly Downloads

1

Version

2.0.2

License

MIT

Unpacked Size

93.6 kB

Total Files

53

Last publish

Collaborators

  • hammy2899