decided in favor of dedicated COMPONENT() macro, updates to documentation

This commit is contained in:
udo
2026-04-19 11:34:03 +00:00
parent be514d63d6
commit 2b5586d7df
56 changed files with 926 additions and 401 deletions
@@ -5,9 +5,9 @@ RENDER(Request& context)
starter_boot(context);
context.var["starter"]["page_title"] = "Theme Preview";
starter_register_css("views/themes.css", context);
String current_theme_key = starter_theme_value("key", context);
String theme_label = first(starter_theme_value("label", context), current_theme_key);
String theme_mode = starter_theme_value("mode", context);
String current_theme_key = context.cfg.get_by_path("theme/key").to_string();
String theme_label = first(context.cfg.get_by_path("theme/label").to_string(), current_theme_key);
String theme_mode = context.cfg.get_by_path("theme/mode").to_string();
StringMap theme_params;
theme_params["theme"] = current_theme_key;