Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename example.handlebars in template to example in generated project #27

Open
SimonSapin opened this issue Jun 28, 2022 · 0 comments
Open

Comments

@SimonSapin
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant