https://github.com/andrepolischuk/typographic-template
Replace all :keys in text with given options
https://github.com/andrepolischuk/typographic-template
template textr textr-plugins
Last synced: over 1 year ago
JSON representation
Replace all :keys in text with given options
- Host: GitHub
- URL: https://github.com/andrepolischuk/typographic-template
- Owner: andrepolischuk
- License: mit
- Created: 2015-05-05T08:36:34.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-05-03T11:44:18.000Z (about 9 years ago)
- Last Synced: 2025-01-04T01:54:17.584Z (over 1 year ago)
- Topics: template, textr, textr-plugins
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# typographic-template [](https://travis-ci.org/andrepolischuk/typographic-template)
> Replace all :keys in text with given options
## Install
```sh
npm install --save typographic-template
```
## Usage
```js
var template = require('typographic-template');
template('Hello :name!', {name: 'Ivan'}); // Hello Ivan!
```
With [textr](https://github.com/shuvalov-anton/textr)
```js
var textr = require('textr');
var template = require('typographic-template');
var tf = textr({name: 'Ivan'})
.use(template);
tf('Hello :name!'); // Hello Ivan!
```
## License
MIT