Data splats from underscore to hyphenated #940
Unanswered
olleolleolle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am making a Hash of attributes for my Slim template.
div *a Add Olle template here
The output becomes:
<div class="test-one" data-olle_target="yes">Add Olle template here</div>
I wonder, would it be hard to make the
data-olle_target
its Rails-expected attribute namedata-olle-target
?Perhaps this API is something :
https://blog.saeloun.com/2021/05/05/rails-7-transform-hash-into-html-for-erb-interpolation/
Beta Was this translation helpful? Give feedback.
All reactions