summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam T. Carpenter <atc@53hor.net>2025-05-18 10:44:04 -0400
committerAdam T. Carpenter <atc@53hor.net>2025-05-18 10:44:04 -0400
commit37b6c927620cb68e01345d29daca960faeb80cb9 (patch)
treeb2740d9a88fb238ea6aae44fb73481265b009e1d /src
parentd6a495165b4f36b8bf3137deac46f7bcfb1d7bf1 (diff)
downloadcarpentertutoring-37b6c927620cb68e01345d29daca960faeb80cb9.tar.xz
carpentertutoring-37b6c927620cb68e01345d29daca960faeb80cb9.zip
chore: rename jinja templates
Also wrap style block so auto formatter doesn't pick it up and wreck CSS.
Diffstat (limited to 'src')
-rw-r--r--src/views/about.rs2
-rw-r--r--src/views/brochure.rs2
-rw-r--r--src/views/index.rs2
-rw-r--r--src/views/k12.rs2
-rw-r--r--src/views/policies.rs2
-rw-r--r--src/views/post.rs2
-rw-r--r--src/views/posts.rs2
7 files changed, 7 insertions, 7 deletions
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<T: Tutor> {
tutors: Vec<T>,
}
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<P: Post> {
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<P: Post> {
posts: Vec<P>,
}