From 37b6c927620cb68e01345d29daca960faeb80cb9 Mon Sep 17 00:00:00 2001 From: "Adam T. Carpenter" Date: Sun, 18 May 2025 10:44:04 -0400 Subject: chore: rename jinja templates Also wrap style block so auto formatter doesn't pick it up and wreck CSS. --- src/views/about.rs | 2 +- src/views/brochure.rs | 2 +- src/views/index.rs | 2 +- src/views/k12.rs | 2 +- src/views/policies.rs | 2 +- src/views/post.rs | 2 +- src/views/posts.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/views') diff --git a/src/views/about.rs b/src/views/about.rs index 349c9de..d2e0958 100644 --- a/src/views/about.rs +++ b/src/views/about.rs @@ -3,7 +3,7 @@ use crate::tutors::abstractions::tutor::Tutor; use askama::Template; #[derive(Template)] -#[template(path = "about/index.html")] +#[template(path = "about/index.html.j2")] pub struct AboutView { tutors: Vec, } diff --git a/src/views/brochure.rs b/src/views/brochure.rs index 0d2f8fc..fedf827 100644 --- a/src/views/brochure.rs +++ b/src/views/brochure.rs @@ -2,5 +2,5 @@ use crate::helpers::*; use askama::Template; #[derive(Template)] -#[template(path = "brochure/index.html")] +#[template(path = "brochure/index.html.j2")] pub struct BrochureTemplate; diff --git a/src/views/index.rs b/src/views/index.rs index 3ced24d..720749a 100644 --- a/src/views/index.rs +++ b/src/views/index.rs @@ -2,5 +2,5 @@ use crate::helpers::*; use askama::Template; #[derive(Template)] -#[template(path = "index.html")] +#[template(path = "index.html.j2")] pub struct IndexTemplate; diff --git a/src/views/k12.rs b/src/views/k12.rs index eb9725f..c7dc019 100644 --- a/src/views/k12.rs +++ b/src/views/k12.rs @@ -2,5 +2,5 @@ use crate::helpers::*; use askama::Template; #[derive(Template)] -#[template(path = "k12.html")] +#[template(path = "k12.html.j2")] pub struct K12Template; diff --git a/src/views/policies.rs b/src/views/policies.rs index 3d9787d..4253e6c 100644 --- a/src/views/policies.rs +++ b/src/views/policies.rs @@ -2,5 +2,5 @@ use crate::helpers::*; use askama::Template; #[derive(Template)] -#[template(path = "policies.html")] +#[template(path = "policies.html.j2")] pub struct PoliciesTemplate; diff --git a/src/views/post.rs b/src/views/post.rs index 4f0554b..03e5ef2 100644 --- a/src/views/post.rs +++ b/src/views/post.rs @@ -3,7 +3,7 @@ use crate::posts::abstractions::post::Post; use askama::Template; #[derive(Template)] -#[template(path = "post.html")] +#[template(path = "post.html.j2")] pub struct PostView { post: P, } diff --git a/src/views/posts.rs b/src/views/posts.rs index 82b5996..5091059 100644 --- a/src/views/posts.rs +++ b/src/views/posts.rs @@ -3,7 +3,7 @@ use crate::posts::abstractions::post::Post; use askama::Template; #[derive(Template)] -#[template(path = "posts.html")] +#[template(path = "posts.html.j2")] pub struct PostsView { posts: Vec

, } -- cgit v1.2.3