Skip to content
a simple nodejs render engine
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__mocks__
docs
src
tests
.gitignore
.travis.yml
CHANGELOG.md
LICENSE.md
README.md
index.js
logo.png
package-lock.json
package.json

README.md

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.

You can’t perform that action at this time.