https://github.com/t-mullen/microstache
Tiny templating module.
https://github.com/t-mullen/microstache
small template-engine
Last synced: 3 months ago
JSON representation
Tiny templating module.
- Host: GitHub
- URL: https://github.com/t-mullen/microstache
- Owner: t-mullen
- License: mit
- Created: 2016-10-16T04:44:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T06:50:13.000Z (about 8 years ago)
- Last Synced: 2025-01-25T08:48:28.173Z (5 months ago)
- Topics: small, template-engine
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
Microstache
558 byte mustache templating.
[](https://travis-ci.org/RationalCoding/microstache) [](http://standardjs.com/)
Just include it in your project:
```html```
Then use `Microstache.template` to template a string with the data in an object.
```javascript
var template = '{{someData}}
'
var data = {
someData: 'A String',
}
var templated = Microstache.template(template, data) // 'A String
'
```Fast and powerful string templating for less than a kB. Can it get simpler than that?
*If you need more than just object templating, try [Mustache.js](https://github.com/janl/mustache.js)*