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

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.

Awesome Lists containing this project

README

        




HyperHost


Microstache





558 byte mustache templating.



[![Build Status](https://travis-ci.org/RationalCoding/microstache.svg?branch=master&nonce=1937)](https://travis-ci.org/RationalCoding/microstache) [![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](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)*