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

Restrict views to common template formats #155

Merged
merged 1 commit into from
Mar 10, 2022
Merged

Conversation

pixeltrix
Copy link
Contributor

Using ./app/views/**/* includes transient files like vim backup files and generates errors like that seen in rails/rails#44646.

Obviously if people start using other template engines like Slim or Haml then they'll need to add the appropriate extensions.

@dhh
Copy link
Member

dhh commented Mar 10, 2022

I think we changed this at one point to include everything to get haml files also? Maybe we could expand it to include haml and slim or whatever is reasonably popular. But 👍 on not having it be everything.

Using `./app/views/**/*` includes transient files like vim backup
files and generates errors like that seen in rails/rails#44646.
@pixeltrix pixeltrix changed the title Only include ERB templates by default Restrict views to common template formats Mar 10, 2022
@pixeltrix
Copy link
Contributor Author

Added Slim, Haml and HTML since Rails can render raw HTML as well

@dhh dhh merged commit af10f7e into rails:main Mar 10, 2022
@pixeltrix pixeltrix deleted the patch-1 branch March 10, 2022 14:57
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

Successfully merging this pull request may close these issues.

2 participants