2 Commits

Author SHA1 Message Date
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 7 additions and 5 deletions

View File

@@ -7,9 +7,11 @@ 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!'
``` ```

View File

@@ -1,6 +1,6 @@
{ {
"name": "tlt", "name": "tlt",
"version": "1.0.2", "version": "1.0.3",
"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",