opal-rails icon indicating copy to clipboard operation
opal-rails copied to clipboard

opal_tag should mirror the javascript_tag api

Open dscataglini opened this issue 1 year ago • 0 comments

Currently it's not possible to pass html_options to the javascript_tag. So the following is not possible

opal_tag nonce: true do
  # some javascript
end

This PR fixes that and provides an identical api to javascript_tag so it behaves as you would think it would

dscataglini avatar Jul 30 '24 00:07 dscataglini