From b47171f7b23ef3062625d34b64d8a8715333c827 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Tue, 14 May 2024 17:14:37 -0500 Subject: [PATCH] Tenplates --- src/router.rs | 4 ++-- src/templates/pages/index.jinja.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router.rs b/src/router.rs index 6dcf7cf..b2611d4 100644 --- a/src/router.rs +++ b/src/router.rs @@ -42,7 +42,7 @@ async fn index(State(state): State) -> Result> { Ok(Html( state .templates - .render("pages/index.html.jinja", context!()) + .render("pages/index.jinja.html", context!()) .await?, )) } @@ -50,7 +50,7 @@ async fn about(State(state): State) -> Result> { Ok(Html( state .templates - .render("pages/about.html.jinja", context!()) + .render("pages/about.jinja.html", context!()) .await?, )) } diff --git a/src/templates/pages/index.jinja.html b/src/templates/pages/index.jinja.html index 9d89bcf..7fb9dbe 100644 --- a/src/templates/pages/index.jinja.html +++ b/src/templates/pages/index.jinja.html @@ -1,4 +1,4 @@ -{% extends "page.html.jinja" %} +{% extends "page.jinja.html" %} {% block body %}

Index