A decentralized event management and credentialing system built on atproto.
1fn main() {
2 #[cfg(all(feature = "embed", feature = "reload"))]
3 compile_error!("feature \"embed\" and feature \"reload\" cannot be enabled at the same time");
4
5 #[cfg(feature = "embed")]
6 {
7 use std::env;
8 use std::path::PathBuf;
9 let template_path = if let Ok(value) = env::var("HTTP_TEMPLATE_PATH") {
10 value.to_string()
11 } else {
12 PathBuf::from(env!("CARGO_MANIFEST_DIR"))
13 .join("templates")
14 .display()
15 .to_string()
16 };
17
18 // NICK: Don't remove this.
19 println!("template_path {template_path}");
20
21 minijinja_embed::embed_templates!(&template_path);
22 }
23}