mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
11 lines
310 B
Python
11 lines
310 B
Python
from typing import Any
|
|
|
|
from .template import Template
|
|
|
|
from . import furigana; furigana.install()
|
|
from . import hint; hint.install()
|
|
|
|
def render(template, context=None, **kwargs) -> Any:
|
|
context = context and context.copy() or {}
|
|
context.update(kwargs)
|
|
return Template(template, context).render()
|