aboutsummaryrefslogtreecommitdiff
path: root/src/post_routes.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-10-28 08:58:12 +0200
committerMartin Fischer <martin@push-f.com>2022-10-28 12:05:09 +0200
commit0b699948d33c6b209439e2eb77c60c220130dc6b (patch)
tree9a042f9c787d4e5854869c31db22644fa040f380 /src/post_routes.rs
parentd2b0892241d9a5bbdf6b701cc7c8c182c9a6c727 (diff)
implement lua-based templates
Diffstat (limited to 'src/post_routes.rs')
-rw-r--r--src/post_routes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post_routes.rs b/src/post_routes.rs
index 51b35ec..fda1619 100644
--- a/src/post_routes.rs
+++ b/src/post_routes.rs
@@ -361,6 +361,6 @@ async fn preview_edit<C: Controller>(
let form: EditForm = body.into_form().await?;
let new_text = form.text.replace("\r\n", "\n");
let mut page = edit_text_form(&form, None, controller, &ctx, parts);
- get_renderer(&ctx.path).unwrap()(&new_text, &mut page, RenderMode::Preview);
+ get_renderer(&ctx.path).unwrap()(&new_text, &mut page, RenderMode::Preview, &ctx);
Ok(page.into())
}