Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a5a8f5ae24 | |||
| 01ad44078c | |||
| f846505fab | |||
| 6e5e1bb631 |
28
README.md
28
README.md
@@ -1,15 +1,35 @@
|
|||||||
# tlt
|
# tlt
|
||||||
templates done right
|
templates done right
|
||||||
|
|
||||||
|
## Availabililty
|
||||||
|
[](https://www.npmjs.com/package/tlt)
|
||||||
|
[](https://gitlab.com/pushrocks/tlt)
|
||||||
|
[](https://github.com/pushrocks/tlt)
|
||||||
|
[](https://pushrocks.gitlab.io/tlt/)
|
||||||
|
|
||||||
|
## Status for master
|
||||||
|
[](https://gitlab.com/pushrocks/tlt/commits/master)
|
||||||
|
[](https://gitlab.com/pushrocks/tlt/commits/master)
|
||||||
|
[](https://david-dm.org/pushrocks/tlt)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/tlt/master/dependencies/npm)
|
||||||
|
[](https://www.bithound.io/github/pushrocks/tlt)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](https://nodejs.org/dist/latest-v6.x/docs/api/)
|
||||||
|
[](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!'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
[](https://push.rocks)
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user