dynamic-template-string
v0.0.1
Published
dynamic template string
Downloads
7
Readme
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');