Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f846505fab | |||
| 6e5e1bb631 |
10
README.md
10
README.md
@@ -7,9 +7,11 @@ We recommend the use of TypeScript for best in class Intellisense
|
||||
```javascript
|
||||
import { Tlt } from 'tlt'
|
||||
|
||||
let myTlt = new Tlt('my template String for {{somePlaceholder}} and {{anotherPlaceholder}}')
|
||||
myTlt.getStringFor({
|
||||
"somePlaceholder": "pushrocks",
|
||||
"anotherPlaceholder": "anotherPlaceholder"
|
||||
let myTlt = new Tlt('my {{somePlaceholder}} are {{anotherPlaceholder}}!')
|
||||
let appliedString = myTlt.applyData({
|
||||
"somePlaceholder": "horses",
|
||||
"anotherPlaceholder": "awesome"
|
||||
})
|
||||
|
||||
// appliedString will be 'my horses are awesome!'
|
||||
```
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tlt",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"description": "templates done right",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
|
||||
Reference in New Issue
Block a user