2.0.2 • Published 6 years ago

@hamistudios/crather v2.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

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.

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.0.0

6 years ago