use formatx::Template; fn main() { let mut template = "{percentage color=true:.2} => {percentage color=false:.0}%" .parse::