# easytpl

> a simple JavaScript template engine

Latest version **1.0.4** (published 2016-01-06) · ISC license · 0 weekly downloads

## Install

```sh
npm install easytpl
pnpm add easytpl
yarn add easytpl
bun add easytpl
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2016-01-06 |
| First published | 2015-12-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | ruoyu |
| Maintainers | hunger |
| Keywords | JavaScript, template, engine, tpl |

## Links

- npm: https://www.npmjs.com/package/easytpl
- Repository: https://github.com/jirengu/easytpl
- Homepage: https://github.com/jirengu/easytpl#readme
- Issues: https://github.com/jirengu/easytpl/issues
- npm.io page: https://npm.io/package/easytpl

## Recent versions

- 1.0.4 (latest) — 2016-01-06
- 1.0.3 — 2015-12-15
- 1.0.2 — 2015-12-15
- 1.0.1 — 2015-12-15
- 1.0.0 — 2015-12-15

## README

# easyTpl

easyTpl, a simple JavaScript template.

## Install

1. Node environment

```bash    
npm install easytpl
```
2. Client environment

```bash
bower install easytpl
```
## Useage

```javascript

var easyTpl = require('easyTpl');
var tpl = 'hello my name is {{name}}. I have a {{dog.age}} year old dog. His color is {{dog.color}}.';

var data = {
    name: 'hunger',
    dog: {
        color: 'yellow',
        age: 2
    }
};

var str = easyTpl(tpl, data);
console.log(str);
```
more demos in **sample** folder.

online demo? visit [http://book.jirengu.com/jirengu/easytpl].

## Test

```bash
make test
```

## Auther

- [hunger@jirengu.com](http://hunger.coding.io)

---
_Source: https://npm.io/package/easytpl · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
