website with slop placeholders

This commit is contained in:
udo
2026-04-22 13:31:51 +00:00
parent 14ebf10a22
commit 223cf4c6e1
336 changed files with 66009 additions and 116 deletions
+23
View File
@@ -0,0 +1,23 @@
COMPONENT(Request& context)
{
<><section class="tests-component">
<? component_render(":HEADER", context.call, context); ?>
<? component_render(":BODY", context.call, context); ?>
<? component_render(":FOOTER", context.call, context); ?>
</section></>
}
COMPONENT:HEADER(Request& context)
{
<><h3 class="accent"><?= first(context.call["title"].to_string(), "Missing Title") ?></h3></>
}
COMPONENT:BODY(Request& context)
{
<><p><?= first(context.call["body"].to_string(), "Missing Body") ?></p></>
}
COMPONENT:FOOTER(Request& context)
{
<><small><?= first(context.call["footer"].to_string(), "Missing Footer") ?></small></>
}