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.
17 lines
473 B
17 lines
473 B
2 years ago
|
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();
|
||
|
}
|