webots-proto-template
Template evaluation for Webots PROTO files.
This crate evaluates Webots %< ... >% and %<= ... >% template blocks on top of the AST from webots-proto-ast.
Example
use Proto;
use RenderOptions;
let proto: Proto = r#"#VRML_SIM R2025a utf8
PROTO Demo [
field SFInt32 count 2
] {
WorldInfo { title "%<= fields.count.value >%" }
}
"#
.parse?;
let rendered = render?;
println!;
# Ok::