You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
then working with this in haml 5 or haml 6.0 - the selection is made as expected/same as erb (.raw and .xls choose the one without .html, whereas .html choose the one with .html), ie.
app/things/show.haml
app/things/_thing.haml
app/layouts/application.haml
but when you move to haml 6.1 the selection is made as follows:
If you define custom formats / mime types e.g.
and then define layouts and partials based on a generic/fallback format (
views/layouts/application.{erb,haml}
and e.g.views/things/_thing.{erb,haml}
).so you have files (taking the haml view)
then working with this in haml 5 or haml 6.0 - the selection is made as expected/same as erb (.raw and .xls choose the one without .html, whereas .html choose the one with .html), ie.
app/things/show.haml
app/things/_thing.haml
app/layouts/application.haml
but when you move to haml 6.1 the selection is made as follows:
app/things/show.html.haml
app/things/_thing.haml
app/layouts/application.html.haml
Screenshots
Expected .html
Expected .raw (erb, haml-5, haml-6.0, haml-6.1.2)
Got .raw (haml-6.1.3+)
reproduction repo
see https://github.com/timdiggins/haml-issue-1154
main branch is erb, separate branches for different haml versions
rails test:all
The text was updated successfully, but these errors were encountered: