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:
slhx agent
2026-05-26 01:10:57 +02:00
parent 3d65e92783
commit a8bd7dfdf7
3 changed files with 13 additions and 25 deletions
+1 -5
View File
@@ -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 {