about summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rwxr-xr-x[-rw-r--r--]src/main.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.rs b/src/main.rs
index 0c61389..5784588 100644..100755
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,4 +1,4 @@
-mod atomizer;
+mod atom;
 mod error;
 mod fs;
 mod ifc;
@@ -20,7 +20,7 @@ use axum::{
 };
 use bempline::{variables, Document, Options};
 use camino::Utf8PathBuf;
-use confindent::Confindent;
+use confindent::{Confindent, Node};
 pub use error::RuntimeError;
 use fs::Filesystem;
 use settings::Settings;
@@ -36,7 +36,7 @@ use crate::{
 #[tokio::main]
 async fn main() {
 	match std::env::args().nth(1).as_deref() {
-		Some("atomizer") => atomizer::main(),
+		Some("atomizer") => atom::main(),
 		/* fallthrough*/
 		Some("serve") => (),
 		_ => (),
@@ -250,7 +250,7 @@ async fn send_template(
 	for style in templated.frontmatter.get_many("style") {
 		let mut pat = style_pattern.clone();
 		pat.set("style", style);
-		template.set_pattern("styles", pat);
+		template.set_pattern(pat);
 	}
 
 	// path to the file for navigation
@@ -285,7 +285,7 @@ async fn send_template(
 		let mut pat = path_pattern.clone();
 		pat.set("path_link", "/");
 		pat.set("path_name", "home");
-		template.set_pattern("path", pat);
+		template.set_pattern(pat);
 
 		for part in path {
 			link.push(part);
@@ -293,7 +293,7 @@ async fn send_template(
 			let mut pat = path_pattern.clone();
 			pat.set("path_link", &link);
 			pat.set("path_name", part);
-			template.set_pattern("path", pat);
+			template.set_pattern(pat);
 		}
 	}