improve README
This commit is contained in:
parent
de578b3123
commit
6e5e1bb631
10
README.md
10
README.md
@ -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!'
|
||||||
```
|
```
|
Loading…
Reference in New Issue
Block a user