aboutsummaryrefslogtreecommitdiff
path: root/src/template.rs
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2025-03-06 23:45:38 +0100
committerRuben Beltran del Rio <git@r.bdr.sh>2025-03-06 23:45:38 +0100
commitcd63ee5ae6542f0603ab34ac9affc33f7c2e37eb (patch)
tree08750426cb3ba66df0c7c113c81790e8ba6adb06 /src/template.rs
parent7761f8b4814b86bb23fb3d1b8498b147bd1313e9 (diff)
Add tests to generate
Diffstat (limited to 'src/template.rs')
-rw-r--r--src/template.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/template.rs b/src/template.rs
index 7e47e65..2e4c8a6 100644
--- a/src/template.rs
+++ b/src/template.rs
@@ -7,6 +7,7 @@ use std::path::Path;
const TXT_TEMPLATE: &str = include_str!("../templates/index.txt");
const HTML_TEMPLATE: &str = include_str!("../templates/index.html");
const GMI_TEMPLATE: &str = include_str!("../templates/index.gmi");
+const GPH_TEMPLATE: &str = include_str!("../templates/index.gph");
const RSS_TEMPLATE: &str = include_str!("../templates/feed.xml");
// Parse and Render
@@ -292,6 +293,7 @@ fn find_default(filename: &str) -> Option<String> {
"index.txt" => Some(TXT_TEMPLATE.to_string()),
"index.html" => Some(HTML_TEMPLATE.to_string()),
"index.gmi" => Some(GMI_TEMPLATE.to_string()),
+ "index.gph" => Some(GPH_TEMPLATE.to_string()),
"feed.xml" => Some(RSS_TEMPLATE.to_string()),
&_ => None,
}