dynamic-template-string

0.0.1 • Public • Published

dynamic-template-string

Deeply inspired by stackoverflow.

Demo

const assert = require('assert');
const Template = require('../');

var tpl = new Template('hello ${name}');

assert(tpl.fill({name: 'world'}) === 'hello world');
assert(tpl.fill({name: 'china'}) === 'hello china');

Readme

Keywords

Package Sidebar

Install

npm i dynamic-template-string

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

2.38 kB

Total Files

5

Last publish

Collaborators

  • zhoukekestar