vf-site/lib/config.py
Ruidy a5136d102b use consistent naming convention for config keys
set default in main instead of inside the renderer

fix: renderer template folder setup
2023-06-13 14:35:05 +02:00

15 lines
275 B
Python

import json
from typing import TypedDict
class Config(TypedDict):
name: str
templatesDir: str
templates: list[str]
staticFilesDir: list[str]
outDir: str
def load() -> Config:
with open("config.json", "r") as f:
return json.loads(f.read())