properjs-template

0.2.0 • Public • Published

template

The worlds smallest template rendering engine. No logic, non-iterable. Done.

Installation

npm install properjs-template --save-dev

Usage

var template = require( "properjs-template" );
 
var data = {
    foo: "Bar"
};
var html = "<h1>{foo}</h1>";
 
// You can also use double brackets, your choice
// var html = "<h1>{{foo}}</h1>";
 
// Render some stuff
var rendered = template( html, data );
 
// Output:
// <h1>Bar</h1>

install

npm i properjs-template

Downloadsweekly downloads

17

version

0.2.0

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability