Anki/anki/template/__init__.py
2019-12-16 18:16:26 +10:00

8 lines
278 B
Python

from .template import Template
from . import furigana; furigana.install()
from . import hint; hint.install()
def render(template, context=None, **kwargs):
context = context and context.copy() or {}
context.update(kwargs)
return Template(template, context).render()