Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Yesod - how to make addScriptRemote add the script in the head section?

In Yesod/Haskell, I'd like to call addScriptRemote and have it add the <script> tag in the head section. As is, it seems to add the script only to the body section.

like image 904
daj Avatar asked May 18 '15 19:05

daj


1 Answers

Where scripts get placed will depend on jsLoader. If you want to make a change for a specific script, you can use toWidgetHead [hamlet|<script src=...">|].

like image 138
Michael Snoyman Avatar answered Nov 08 '22 07:11

Michael Snoyman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!