picotemplate

0.0.2 • Public • Published

picotemplate

An eight line of code javascript template engine

Usage

var picotemplate = require('picotemplate');

picotemplate(template, variables);

where template is the string you want to interpolate and variable is a JSON object with variables and their values, for example {foo:"bar", toto:"titi"}

WARNING

This module heavily uses eval(). You should audit it before use and not pass it user provided strings.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i picotemplate

Weekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

2.44 kB

Total Files

6

Last publish

Collaborators

  • pmarquesmota