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

added jsAttributes for the script tag generated by julius files #1308

Merged
merged 2 commits into from Nov 27, 2016

Conversation

sbditto85
Copy link
Contributor

My first attempt at fixing issue #1300.

I tried a number of things and this is the one I settled on. Please let me know if there is a better way of doing it as I'm still learning Haskell and Yesod.

@@ -570,7 +575,7 @@ widgetToPageContent w = do
^{mkScriptTag s}
$maybe j <- jscript
$maybe s <- jsLoc
<script src="#{s}">
^{mkDefaultScriptTag s (jsAttributes master)}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use the *{..} syntax for multiple attributes, described at: http://www.yesodweb.com/book/shakespearean-templates#shakespearean-templates_attributes

@sbditto85
Copy link
Contributor Author

Awesome i figured i was missing something. Learn something new every day :)

@snoyberg snoyberg merged commit ed87ded into yesodweb:master Nov 27, 2016
@snoyberg
Copy link
Member

Thanks!

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