From 9d70f17587142bf98a38662c80eb33adca245fba Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Thu, 3 Sep 2026 16:14:59 +0000 Subject: [PATCH] Pass CLI config to the app as JSON in PAGERITE_CONFIG --- docs/frontend-runtime.md | 3 ++- pagerite/__main__.py | 23 +++++++++-------------- pagerite/app.py | 5 ++--- pagerite/config.py | 28 ++++++++++++++++++++++++++++ pagerite/state.py | 8 ++++++-- pagerite/views.py | 9 +++++++-- 6 files changed, 54 insertions(+), 22 deletions(-) create mode 100644 pagerite/config.py diff --git a/docs/frontend-runtime.md b/docs/frontend-runtime.md index 839a0de..c3c011a 100644 --- a/docs/frontend-runtime.md +++ b/docs/frontend-runtime.md @@ -26,6 +26,7 @@ Vite builds ES-module `.js` outputs; in dev the backend links them as `