smartmustache/README.md

17 lines
383 B
Markdown
Raw Normal View History

2016-11-20 11:35:46 +00:00
# tlt
templates done right
## Usage
We recommend the use of TypeScript for best in class Intellisense
```javascript
2016-11-20 16:41:26 +00:00
import { Tlt } from 'tlt'
2016-11-20 11:35:46 +00:00
2016-11-20 16:44:56 +00:00
let myTlt = new Tlt('my {{somePlaceholder}} are {{anotherPlaceholder}}!')
let appliedString = myTlt.applyData({
"somePlaceholder": "horses",
"anotherPlaceholder": "awesome"
2016-11-20 11:35:46 +00:00
})
2016-11-20 16:44:56 +00:00
// appliedString will be 'my horses are awesome!'
2016-11-20 11:35:46 +00:00
```