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
+3 -3
View File
@@ -7,7 +7,7 @@ RENDER(Request& context)
DTree named_props;
named_props["title"] = "Named Render Example";
named_props["body"] = "This content is rendered through the RENDER:BODY(Request& context) entry point.";
named_props["body"] = "This content is rendered through the COMPONENT:BODY(Request& context) entry point.";
<>
<link rel="stylesheet" href='style.css?v=<?= time() ?>'></link>
@@ -23,11 +23,11 @@ RENDER(Request& context)
component_resolve("components/card"):
<code><?= component_resolve("components/card") ?></code>
</p>
<h2>Default Render</h2>
<h2>Default Component</h2>
<div>
<?: component("components/card", card_props, context) ?>
</div>
<h2>Named Render</h2>
<h2>Named Component</h2>
<? render_component("components/card:BODY", named_props, context); ?>
</>
}