COMPONENT(Request& context)
{
<>
component_render(":HEADER", context.props, context); ?>
component_render(":BODY", context.props, context); ?>
component_render(":FOOTER", context.props, context); ?>
>
}
COMPONENT:HEADER(Request& context)
{
<>
= first(context.props["title"].to_string(), "Missing Title") ?>
>
}
COMPONENT:BODY(Request& context)
{
<>= first(context.props["body"].to_string(), "Missing Body") ?>
>
}
COMPONENT:FOOTER(Request& context)
{
<>= first(context.props["footer"].to_string(), "Missing Footer") ?>>
}