Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/afeiship/next-tmpl
A simple template engine based on next.
https://github.com/afeiship/next-tmpl
ejs hbs next template-engine tmpl
Last synced: 10 days ago
JSON representation
A simple template engine based on next.
- Host: GitHub
- URL: https://github.com/afeiship/next-tmpl
- Owner: afeiship
- License: mit
- Created: 2017-08-11T10:13:13.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-05-24T04:44:50.000Z (over 1 year ago)
- Last Synced: 2024-10-06T22:25:03.313Z (about 1 month ago)
- Topics: ejs, hbs, next, template-engine, tmpl
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-tmpl
> A simple template engine based on next.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-tmpl
```## usage
```js
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](https://github.com/afeiship/next-tmpl/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-tmpl
[version-url]: https://npmjs.org/package/@jswork/next-tmpl[license-image]: https://img.shields.io/npm/l/@jswork/next-tmpl
[license-url]: https://github.com/afeiship/next-tmpl/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-tmpl
[size-url]: https://github.com/afeiship/next-tmpl/blob/master/dist/next-tmpl.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-tmpl
[download-url]: https://www.npmjs.com/package/@jswork/next-tmpl