mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
8 lines
278 B
Python
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()
|