diff options
author | Martin Fischer <martin@push-f.com> | 2022-10-28 08:58:12 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2022-10-28 12:05:09 +0200 |
commit | 0b699948d33c6b209439e2eb77c60c220130dc6b (patch) | |
tree | 9a042f9c787d4e5854869c31db22644fa040f380 /src/post_routes.rs | |
parent | d2b0892241d9a5bbdf6b701cc7c8c182c9a6c727 (diff) |
implement lua-based templates
Diffstat (limited to 'src/post_routes.rs')
-rw-r--r-- | src/post_routes.rs | 2 |
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()) } |