When editing a .rs file that contains Handlebars templating, my IDE tries to parse it as Rust code and shows many errors all over the file. If instead the file were named .rs.handlebars, the IDE shows Handlebars syntax highlighting and does not try (and fail) at parsing Rust code.
I’d like to do this in the template but have the .handlebars suffix be removed in the generated file names. Do you think this kind of name mapping could be added? Should it be enabled by default or with opt-in configuration in .scaffold.toml?
When editing a
.rs
file that contains Handlebars templating, my IDE tries to parse it as Rust code and shows many errors all over the file. If instead the file were named.rs.handlebars
, the IDE shows Handlebars syntax highlighting and does not try (and fail) at parsing Rust code.I’d like to do this in the template but have the
.handlebars
suffix be removed in the generated file names. Do you think this kind of name mapping could be added? Should it be enabled by default or with opt-in configuration in.scaffold.toml
?