@jswork/next-tmpl

1.0.7 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (15)

    Package Sidebar

    Install

    npm i @jswork/next-tmpl

    Homepage

    js.work

    Weekly Downloads

    32

    Version

    1.0.7

    License

    MIT

    Unpacked Size

    5.19 kB

    Total Files

    6

    Last publish

    Collaborators

    • afeiship