RPGs4_sanity/templates/48/js.py

11 lines
292 B
Python
Raw Normal View History

# this file is a hack to allow loading exampledata when running locally
import json
from pathlib import Path
HERE = Path(__file__).parent
with (HERE / "example.json").open() as f:
CARD_XPATHS_ENTRIES = json.load(f)
with (HERE / "card.html.j2").open() as f:
CARD_TEMPLATE = f.read()