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

Add option to hyphenate underscore attributes #852

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

chriscz
Copy link
Contributor

@chriscz chriscz commented Jun 10, 2020

This adds an option to disable the change introduced in #807. It also partially addresses the need of #820, though it hyphenates all underscore-named attributes as before #807.

edit
Note that I've put the condition around the loop instead of inside it as there may be a slight performance gain if it isn't checked for every attribute.

@stonean stonean merged commit d98d373 into slim-template:master Oct 19, 2020
@chadrschroeder
Copy link

Thanks for working on this. I see this was merged a while ago. Do you have plans to bump the version of this gem and include this new :hyphen_underscore_attrs option? This isn't included in the current 4.1.0 release.

@chriscz
Copy link
Contributor Author

chriscz commented May 30, 2022

Hey @chadrschroeder, maybe one day... I would say just to be safe, maybe fork and point bundler to the fork?

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

3 participants