vf-site/lib/config.py

15 lines
275 B
Python

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