next-tmpl
A simple template engine based on next.
installation
npm install -S @jswork/next-tmpl
usage
import '@jswork/next-tmpl';
nx.tmpl('I am {0}, I can live {1} year', ['afei', 100]);
nx.tmpl('I am {name}, I can live {age} year', { name:'afei', age:100});
// I am afei, I can live 100 year
license
Code released under the MIT license.