Open KodrAus opened 3 months ago
We've got another issue preventing us from supporting runtime-parsed templates. #[emit(key)]
allows templates to have non-identifier names, like user.name
. When formatted back into a template, it would look like:
"Hello, {user.name}"
which isn't a parsable template on its own.
emit
uses an attribute like#[emit::fmt(":?")]
to set a custom formatter for an interpolated property based on standard Rust formatting sigils. These attributes aren't currently round-tripped through formatted templates in any way. This isn't an issue yet because there's no runtime template parsing, but if that's ever introduced it'll be a problem then.