<div dir="ltr">Yesod 0.8 will include an addJuliusBody function, which should do exactly what you want. If you need the feature right now, I can send you a link to the code.<div><br></div><div>PS: I&#39;m hopeful that 0.8 will be released within the next ten days. It&#39;s looking to have a number of very nice enhancements, with nothing too earth-shaking, so it should be a good candidate for immediate upgrades.<br>

<div><br></div><div>Michael<br><br><div class="gmail_quote">On Mon, Apr 4, 2011 at 8:04 AM, Max Cantor <span dir="ltr">&lt;<a href="mailto:mxcantor@gmail.com">mxcantor@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

If I add several julius widgets using<br>
  addJulius $(Settings.juliusFile xxx)<br>
  addJulius $(Settings.juliusFile yyy)<br>
I get a link in the head of my generated html file.  is there an easy way to get the plain javascript text either automatically embedded between &lt;script&gt; tags on the generated HTML file or just to extract the text from several julius files and embed it outselves between script tags in hamlet?<br>


<br>
I tried this:<br>
<br>
  j &lt;- extractBody $   addJulius $(Settings.juliusFile xxx)<br>
<br>
and including, in the hamlet file:<br>
<br>
  ^{j}<br>
<br>
but that didn&#39;t compile with this erorr:<br>
    Couldn&#39;t match expected type `GGWidget sub a (GHandler sub a) ()&#39;<br>
           against inferred type `(Route a -&gt; [(String, String)] -&gt; String)<br>
                                  -&gt; Html&#39;<br>
<br>
<br>
Max<br>
_______________________________________________<br>
web-devel mailing list<br>
<a href="mailto:web-devel@haskell.org">web-devel@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/web-devel" target="_blank">http://www.haskell.org/mailman/listinfo/web-devel</a><br>
</blockquote></div><br></div></div></div>