blob: f6d3cd78b5904bd9a47746f6175d96937e8e0d69 (
plain)
1
2
3
4
5
6
7
8
9
10
|
use ructe::compile_templates;
use std::env;
use std::path::PathBuf;
/// Precompiled ructe templates
fn main() {
let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());
let in_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap()).join("templates");
compile_templates(&in_dir, &out_dir).expect("template compilation");
}
|