anki/oldanki/template/__init__.py
2013-01-08 09:43:29 +09:00

8 lines
255 B
Python

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