cargo-scaffold icon indicating copy to clipboard operation
cargo-scaffold copied to clipboard

Rename `example.handlebars` in template to `example` in generated project

Open SimonSapin opened this issue 2 years ago • 0 comments

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?

SimonSapin avatar Jun 28 '22 09:06 SimonSapin