12 lines
399 B
Rust
12 lines
399 B
Rust
use glob::GlobMatcher;
|
|
use rswind::*;
|
|
|
|
fn main() {
|
|
let mut p = create_app();
|
|
p.processor.options.watch = false;
|
|
p.processor.options.parallel = true;
|
|
p.glob = GlobMatcher::new(vec!["**/*.html"], "./templates".into()).expect("Glob must be valid");
|
|
let contents = p.generate_contents();
|
|
std::fs::write("./templates/styles.css", &contents).expect("Failed to save styles.css");
|
|
}
|