Merge pull request #5 from alios/master

Reorder of HTML Header generation
This commit is contained in:
Michael Snoyman 2011-06-14 06:55:29 -07:00
commit c41e714cb1

View File

@ -531,8 +531,6 @@ widgetToPageContent (GWidget w) = do
#else #else
[$hamlet| [$hamlet|
#endif #endif
$forall s <- scripts
^{mkScriptTag s}
$forall s <- stylesheets $forall s <- stylesheets
^{mkLinkTag s} ^{mkLinkTag s}
$forall s <- css $forall s <- css
@ -546,6 +544,8 @@ $forall s <- css
<style media=#{media}>#{content} <style media=#{media}>#{content}
$nothing $nothing
<style>#{content} <style>#{content}
$forall s <- scripts
^{mkScriptTag s}
$maybe j <- jscript $maybe j <- jscript
$maybe s <- jsLoc $maybe s <- jsLoc
<script src="#{s}"> <script src="#{s}">