An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# typographic-template [![Build Status](https://travis-ci.org/andrepolischuk/typographic-template.svg?branch=master)](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