<div><div><span><div><div><div>
            <div><span>renderJulius is indeed what you want.</span></div><div><span><br></span></div><div><span>renderJulius takes a route rendering function for the first argument and then a quasiquoted Julius expression. Unfortunately there's not an explanation exactly how renderJulius's first argument works, but it's definitely related to how it renders routes.&nbsp;</span></div><div><span>Perhaps Michael can give us an intuition on that.</span></div><div><br></div><div>#{} interpolated stuff works without any special effort.</div><div><br></div><div>Once it's clear how to use the first argument, you should be able to just write out the data either to a temporary file and give that to your user or just embed the rendered javascript in a link on a page and have the user drag it to their toolbar.</div><div><span>--&nbsp;<br>Ian Duncan<br><br></span>
                
                <p style="color: #a0a0a0;">On Sunday, February 20, 2011 at 6:08 AM, William Pearson wrote:</p><blockquote type="cite"><div>
                    <span><div><div>On 20 February 2011 05:22, Ian Duncan &lt;<a href="mailto:iand675@gmail.com">iand675@gmail.com</a>&gt; wrote:<br><blockquote type="cite"><div>William,<br>It sounds like you should be able to do what you want to do. You can render<br>type-safe urls with Julius using @{type-safe-url} escapes and other stuff<br>using #{whatever} escapes. No need to sacrifice there. Is that what you were<br>asking? I'm not quite clear on what your dilemma is.<br></div></blockquote><br>The problem is creating a function of type a -&gt; Handler (Content,<br>ContentType) where Content is not a static javascript file, but<br>created from a Julius or Cassius template.<br><br>addJulius is not what I want because it returns a GWidget which I need<br>to add to a defaultLayout or something. Which even if I had a blank<br>default layout as a subsite would put it in script tags, I think.<br><br>renderJulius looks like what I want but I haven't found examples of it's use.<br><br>Does that make things clearer?<br><br>  Will<br><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">http://www.haskell.org/mailman/listinfo/web-devel</a><br></div></div></span>
                
                
                
                
                </div></blockquote><div>
                    <br>
                </div>
            </div>
        </div></div></div></span></div></div>