yul
v1.0.5
Published
Super Lightweight And Fast Template engine
Downloads
5
Readme
Yul Template Engine
💨 Blazing-fast template engine that supports partials for NodeJS.
Installation
$ npm install yul
// or via Yarn
$ yarn add yul
Usage
const yul = require('yul')
// or
import * as yul from 'yul';
Basic
const myTemplate = '<p>Hello, <%= data.name %></p>'
yul.render(myTemplate, { name: 'miky' })
// Returns: '<p>Hello, miky</p>'
Yul with ExpressJs
app.engine('html', yul.renderFile);
app.set('view engine', 'html')
app.set('views', __dirname + '/views');
Todo
- [x] Express Like Frameworks Integration.
- [x] Support partials.
License
Apache License v2.0.