test(examples): use shared slhx render helper
Remove remaining example-local render_html wrappers in favor of slhx::render_html so public examples share the hemplate render_into effect boundary. req: view/001 req: html_safety/002
This commit is contained in:
@@ -214,11 +214,7 @@ fn render_page_swap(title: &'static str, message: &'static str) -> String {
|
||||
|
||||
fn render_docs_content(message: &'static str) -> SafeHtml {
|
||||
// req: html_safety/002 req: view/001
|
||||
render_html(&DocsContent { message })
|
||||
}
|
||||
|
||||
fn render_html(template: &impl Hemplate) -> SafeHtml {
|
||||
SafeHtml::trusted(render_template(template))
|
||||
slhx::render_html(&DocsContent { message })
|
||||
}
|
||||
|
||||
fn render_template(template: &impl Hemplate) -> String {
|
||||
|
||||
Reference in New Issue
Block a user