[web-devel] embedding hamlet/julius/cassius in a hamlet file

Max Cantor mxcantor at gmail.com
Mon Apr 4 07:04:08 CEST 2011

If I add several julius widgets using 
  addJulius $(Settings.juliusFile xxx)
  addJulius $(Settings.juliusFile yyy)
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 <script> 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?

I tried this:

  j <- extractBody $   addJulius $(Settings.juliusFile xxx)

and including, in the hamlet file:


but that didn't compile with this erorr:  
    Couldn't match expected type `GGWidget sub a (GHandler sub a) ()'
           against inferred type `(Route a -> [(String, String)] -> String)
                                  -> Html'


More information about the web-devel mailing list