@jswork/next-tmpl

A simple template engine based on next.

Usage no npm install needed!

<script type="module">
  import jsworkNextTmpl from 'https://cdn.skypack.dev/@jswork/next-tmpl';
</script>

README

next-tmpl

A simple template engine based on next.

version license size download

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.