This package has been deprecated

Author message:

no longer utilizing this module

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>

Package Sidebar

Install

npm i properjs-template

Weekly Downloads

0

Version

0.2.0

License

none

Last publish

Collaborators

  • kitajchuk