mirror of
https://github.com/rjNemo/vf-site
synced 2026-06-06 01:16:38 +00:00
10 lines
257 B
Python
10 lines
257 B
Python
from jinja2 import Environment, FileSystemLoader, select_autoescape
|
|
|
|
engine = Environment(
|
|
loader=FileSystemLoader("templates"),
|
|
autoescape=select_autoescape(),
|
|
)
|
|
|
|
|
|
def render(template: str) -> str:
|
|
return engine.get_template(template).render()
|