#[macro_export]
macro_rules! render {
($ctx:expr, $title:expr, $markup:expr) => {{
let final_html = crate::root::layout::main_layout($title, $markup, &$ctx).into_string();
$crate::protocol::response::Response::new(
200,
$crate::security::xss::Sanitizer::trust(&final_html),
)
}};
(raw, $ctx:expr, $title:expr, $html_string:expr) => {{
let raw_wrapper = maud::PreEscaped($html_string);
let final_html = crate::root::layout::main_layout($title, raw_wrapper, &$ctx).into_string();
$crate::protocol::response::Response::new(
200,
$crate::security::xss::Sanitizer::trust(&final_html),
)
}};
}