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

opal_tag should mirror the javascript_tag api #131

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dscataglini
Copy link

@dscataglini dscataglini commented Jul 30, 2024

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 dscataglini marked this pull request as draft July 30, 2024 18:46
@dscataglini dscataglini marked this pull request as ready for review August 1, 2024 17:28
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.

2 participants