stache

git clone https://git.ce9e.org/stache.git

NameSize
.gitmodules76B
README.md1397B
stache.py3868B
tests.py1023B

Yet another mustache implementation.

Usage

import stache
from html import escape

template = stache.get_template('foo.html')
html = stache.render(template, {'title': 'my first website'}, escape)

template = stache.parse('{{#foo}}{{bar}}{{/foo}}')
output = stache.render(template, {'foo': True, 'bar': 'Hello world!'}, lambda x: x)

Supported features

Not supported