6

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.

Bergi
  • 630,263
  • 148
  • 957
  • 1,375
daj
  • 6,962
  • 9
  • 45
  • 79

1 Answers1

6

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=...">|].

Michael Snoyman
  • 31,100
  • 3
  • 48
  • 77