refactor: better separation of dependencies to crates

node stuff to html crate only
This commit is contained in:
Per Stark
2025-04-04 12:50:38 +02:00
parent 20fc43638b
commit 5bc48fb30b
160 changed files with 231 additions and 337 deletions
+12
View File
@@ -0,0 +1,12 @@
fn main() {
// Get the build profile ("debug" or "release")
let profile = std::env::var("PROFILE").unwrap_or_else(|_| "debug".to_string());
// Embed templates only for release builds
if profile == "release" {
// Embed templates from the "templates" directory relative to CARGO_MANIFEST_DIR
minijinja_embed::embed_templates!("templates");
} else {
println!("cargo:info=Build: Skipping template embedding for debug build.");
}
}