summaryrefslogtreecommitdiff
path: root/pystache/__init__.py
blob: 314c5c83da581195972e7666654c561248acc6b3 (plain)
1
2
3
4
5
6
7
8
from pystache.template import Template
from pystache.view import View
from pystache.loader import Loader

def render(template, context=None, **kwargs):
    context = context and context.copy() or {}
    context.update(kwargs)
    return Template(template, context).render()