You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blobfox/src/main.rs

17 lines
473 B

use std::sync::Arc;
pub mod parse;
use parse::*;
pub mod template;
use template::*;
fn main() {
let species = Arc::new(dbg!(load_species("species/blobfox")).unwrap());
let context = RenderingContext::new(species);
let template = context.compile("species/blobfox/variants/base.svg").unwrap();
let rendered = template.render_data_to_string(&context.get_data()).unwrap();
println!("{}", rendered);
std::fs::write("./test.svg", rendered).unwrap();
}