TPLV
Nano(~170b), High performance string template library, based on ES6 String template syntax.
Install
$ npm i --save tplv
Usage
render
template string
; ; ; rendertemplate, data; // `Hangzhou, 1200(13% | Top 3)` will be got
compile
mode
For 13x faster performance then render mode.
; ; ; ; fndata; // `Hangzhou, 1200(13% | Top 3)` will be got
Perf
Run performance test with rendering-test.
Dev
# install dependence $ npm install # run test cases $ npm run test # run performance for render / compile mode $ npm run perf # build package $ npm run build
License
MIT@hustcc.