mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
7 lines
249 B
Python
7 lines
249 B
Python
from anki.template.template import Template
|
|
from anki.template.view import View
|
|
|
|
def render(template, context=None, **kwargs):
|
|
context = context and context.copy() or {}
|
|
context.update(kwargs)
|
|
return Template(template, context).render()
|