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

Support file extension .html+*.erb for rails and viewcomponent variants #71

Open
tmaier opened this issue Aug 3, 2021 · 0 comments
Open

Comments

@tmaier
Copy link

tmaier commented Aug 3, 2021

This plugin currently only handles the extension .html.erb (see lib/index.js#L14)

Rails (see docs) as well as the popular viewcomponent gem support variants of template files

For example, the following naming convention would represent a default variant + a dedicated mobile and desktop variant.

app/views/home/index.html+mobile.erb
app/views/home/index.html+desktop.erb
app/views/home/index.html.erb

prettier-plugin-erb does not work for this files, as the file extension does not match.

To support this, can you please add support for the extension .html+*.erb?

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