mirror of
https://github.com/ZTatman/myst.git
synced 2026-11-20 12:03:30 +00:00
9 lines
260 B
Python
9 lines
260 B
Python
"""Shared Jinja2 template engine — importable without circular deps."""
|
|
|
|
from pathlib import Path
|
|
|
|
from jinja2_fragments.fastapi import Jinja2Blocks
|
|
|
|
TEMPLATES_DIR = Path(__file__).parent / "templates"
|
|
|
|
templates = Jinja2Blocks(directory=str(TEMPLATES_DIR))
|