yul

1.0.5 • Public • Published

Yul Template Engine

💨 Blazing-fast template engine that supports partials for NodeJS.

Yul template engine Yul template engine Yul template engine Yul template engine Yul template engine

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.

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i yul

    Weekly Downloads

    2

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    14.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • haikel