aboutsummaryrefslogtreecommitdiff
path: root/src/get_routes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/get_routes.rs')
-rw-r--r--src/get_routes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/get_routes.rs b/src/get_routes.rs
index b9ad933..e07050d 100644
--- a/src/get_routes.rs
+++ b/src/get_routes.rs
@@ -81,7 +81,7 @@ fn view_blob<C: Controller>(
match from_utf8(blob.content()) {
Ok(text) => {
if let Some(renderer) = get_renderer(&ctx.path) {
- page.body.push_str(&renderer(text));
+ renderer(text, &mut page);
} else {
page.body
.push_str(&format!("<pre>{}</pre>", html_escape(text)));