mirror of
https://github.com/rjNemo/vf-site
synced 2026-06-06 01:16:38 +00:00
15 lines
275 B
Python
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())
|