atdt / dust.py

Dust templating for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dust.py

Dust templating for Python, originally forked from dust-py.

A quick example:

>>> from dust import dust
>>> dust.compile("Hello, {name}!", 'hello')
>>> dust.render('hello', {'name': 'World'})
'Hello, World!'
>>> dust.load('hella.html', 'hella')
>>> dust.render('hella', {'names': ['Kurt', 'Alex']})
'Hella Kurt and Alex!'

For more info, see the Dust documentation.

About

Dust templating for Python


Languages

Language:Python 100.0%