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

Use the rails template path as filename #1140

Merged
merged 3 commits into from Aug 12, 2023
Merged

Use the rails template path as filename #1140

merged 3 commits into from Aug 12, 2023

Conversation

gucki
Copy link
Contributor

@gucki gucki commented Aug 2, 2023

I want to make haml autogenerate id attributes for all elements. The ids should be static at runtime, so my idea was to use a hash of "#{filename}:#{line}". While trying to implement it, I noticed the filename is currently not set. This tiny patch fixes it.

Also, this changes it to avoid assuming the existence of that method. A
quick `git blame` says it's relatively new, but I could be wrong about
this one. Either way, this change should be safe.
@k0kubun k0kubun merged commit 2ed344f into haml:main Aug 12, 2023
8 checks passed
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.

None yet

2 participants