https://github.com/stealjs/steal-template
A plugin for creating template functions
https://github.com/stealjs/steal-template
Last synced: 2 months ago
JSON representation
A plugin for creating template functions
- Host: GitHub
- URL: https://github.com/stealjs/steal-template
- Owner: stealjs
- License: mit
- Created: 2015-07-20T01:08:53.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T21:14:41.000Z (almost 6 years ago)
- Last Synced: 2024-04-24T16:24:30.319Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# steal-template
[](https://travis-ci.org/stealjs/steal-template)
[](http://badge.fury.io/js/steal-template)**steal-template** is a [StealJS](http://stealjs.com) plugin for creating template functions. steal-template uses [lodash template](https://lodash.com/docs#template) behind the scenes.
## Install
```shell
npm install steal-template --save
```## Usage
Here's a simple hello world example:
### hello.txt
```
Hello <%= name %>!
```### main.js
```js
var hello = require("hello.txt!steal-template");hello({ name: "world" }); // -> "Hello world!"
```## License
MIT