You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
987 B
Markdown
33 lines
987 B
Markdown
# Template
|
|
|
|
[](https://npmjs.org/package/@blakeembrey/template)
|
|
[](https://npmjs.org/package/@blakeembrey/template)
|
|
[](https://travis-ci.org/blakeembrey/js-template)
|
|
[](https://coveralls.io/r/blakeembrey/js-template?branch=master)
|
|
|
|
> Fast and simple string template library.
|
|
|
|
## Installation
|
|
|
|
```
|
|
npm install @blakeembrey/template --save
|
|
```
|
|
|
|
## Usage
|
|
|
|
```js
|
|
import { template } from "@blakeembrey/template";
|
|
|
|
const fn = template("Hello {{name}}!");
|
|
|
|
fn({ name: "Blake" }); //=> "Hello Blake!"
|
|
```
|
|
|
|
## TypeScript
|
|
|
|
This module uses [TypeScript](https://github.com/Microsoft/TypeScript) and publishes type definitions on NPM.
|
|
|
|
## License
|
|
|
|
Apache 2.0
|