COMPONENT(Request& context)
{
<>
render_component(":TITLE", context.call, context); ?>
render_component(":BODY", context.call, context); ?>
>
}
COMPONENT:TITLE(Request& context)
{
<>
= first(context.call["title"].to_string(), "Component Title") ?>
>
}
COMPONENT:BODY(Request& context)
{
<>
= first(context.call["body"].to_string(), "Component Body") ?>
>
}