From 7963b69cb3965aa5625496d0611ef004000275e2 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sun, 17 May 2026 21:00:01 +0200 Subject: [PATCH] feat(templates): add _macros.html with config_field macro --- l4d2web/l4d2web/templates/_macros.html | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 l4d2web/l4d2web/templates/_macros.html diff --git a/l4d2web/l4d2web/templates/_macros.html b/l4d2web/l4d2web/templates/_macros.html new file mode 100644 index 0000000..b78ed87 --- /dev/null +++ b/l4d2web/l4d2web/templates/_macros.html @@ -0,0 +1,10 @@ +{# Reusable field-cell for the server-detail config grid and any future + key/value layouts. `value` is rendered as-is (caller can pass safe + HTML via `|safe` if needed). `editable` is a flag the caller may + use to switch rendering — currently informational only. #} +{% macro config_field(label, value, editable=False) %} +
+
{{ label }}
+
{{ value }}
+
+{% endmacro %}