mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
9 lines
232 B
Python
9 lines
232 B
Python
from typing import Any
|
|
|
|
from .template import Template
|
|
|
|
|
|
def render(template, context=None, **kwargs) -> Any:
|
|
context = context and context.copy() or {}
|
|
context.update(kwargs)
|
|
return Template(template, context).render()
|