4 Commits

Author SHA1 Message Date
a5a8f5ae24 1.0.4 2016-11-20 17:54:39 +01:00
01ad44078c improve README 2016-11-20 17:54:13 +01:00
f846505fab 1.0.3 2016-11-20 17:45:12 +01:00
6e5e1bb631 improve README 2016-11-20 17:44:56 +01:00
2 changed files with 26 additions and 6 deletions

View File

@@ -1,15 +1,35 @@
# tlt # tlt
templates done right templates done right
## Availabililty
[![npm](https://push.rocks/assets/repo-button-npm.svg)](https://www.npmjs.com/package/tlt)
[![git](https://push.rocks/assets/repo-button-git.svg)](https://gitlab.com/pushrocks/tlt)
[![git](https://push.rocks/assets/repo-button-mirror.svg)](https://github.com/pushrocks/tlt)
[![docs](https://push.rocks/assets/repo-button-docs.svg)](https://pushrocks.gitlab.io/tlt/)
## Status for master
[![build status](https://gitlab.com/pushrocks/tlt/badges/master/build.svg)](https://gitlab.com/pushrocks/tlt/commits/master)
[![coverage report](https://gitlab.com/pushrocks/tlt/badges/master/coverage.svg)](https://gitlab.com/pushrocks/tlt/commits/master)
[![Dependency Status](https://david-dm.org/pushrocks/tlt.svg)](https://david-dm.org/pushrocks/tlt)
[![bitHound Dependencies](https://www.bithound.io/github/pushrocks/tlt/badges/dependencies.svg)](https://www.bithound.io/github/pushrocks/tlt/master/dependencies/npm)
[![bitHound Code](https://www.bithound.io/github/pushrocks/tlt/badges/code.svg)](https://www.bithound.io/github/pushrocks/tlt)
[![TypeScript](https://img.shields.io/badge/TypeScript-2.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/)
[![node](https://img.shields.io/badge/node->=%206.x.x-blue.svg)](https://nodejs.org/dist/latest-v6.x/docs/api/)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)
## Usage ## Usage
We recommend the use of TypeScript for best in class Intellisense We recommend the use of TypeScript for best in class Intellisense
```javascript ```javascript
import { Tlt } from 'tlt' import { Tlt } from 'tlt'
let myTlt = new Tlt('my template String for {{somePlaceholder}} and {{anotherPlaceholder}}') let myTlt = new Tlt('my {{somePlaceholder}} are {{anotherPlaceholder}}!')
myTlt.getStringFor({ let appliedString = myTlt.applyData({
"somePlaceholder": "pushrocks", "somePlaceholder": "horses",
"anotherPlaceholder": "anotherPlaceholder" "anotherPlaceholder": "awesome"
}) })
```
// appliedString will be 'my horses are awesome!'
```
[![npm](https://push.rocks/assets/repo-header.svg)](https://push.rocks)

View File

@@ -1,6 +1,6 @@
{ {
"name": "tlt", "name": "tlt",
"version": "1.0.2", "version": "1.0.4",
"description": "templates done right", "description": "templates done right",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",