cyberstorm/build.rs

14 lines
358 B
Rust
Raw Normal View History

2021-03-02 04:17:16 +00:00
use glob::glob;
use includedir_codegen::Compression;
fn main() {
let mut templates = includedir_codegen::start("BASE_TEMPLATES");
for path_result in glob("book/**/*.tera").unwrap() {
let path = path_result.unwrap();
templates.add_file(path, Compression::Gzip).unwrap();
}
templates.build("mdbook-templates.rs").unwrap();
}