0.0.1 • Published 5 years ago
dynamic-template-string v0.0.1
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');
0.0.1
5 years ago