Your question would be better answered on the yesod (google group) mail list.
Julius is fairly dumb about interpolation as you point out. Eventually we would like to make all insertions be JSON values.

On Wed, Nov 14, 2012 at 2:08 AM, Dmitry Vyal <akamaus@gmail.com> wrote:
Greetings

Recently I stumbled upon an unexpected escaping problem. I hoped Shakespeare templates would solve these forever, but looks like it's not the case.

For example, look at this snippet:
Prelude Text.Julius Data.Text.Lazy Data.Text> let t = "X\"Y\"Z"; j = [julius| str = "a#{t}bc"; |] in putStrLn $ Data.Text.Lazy.unpack $  renderJavascriptUrl (\u env -> Data.Text.pack "") j
 str = "aX"Y"Zbc";

Clearly we have have a problem here. Can something be done with it?

Best wishes,
Dmitry

_______________________________________________
web-devel mailing list
web-devel@haskell.org
http://www.haskell.org/mailman/listinfo/web-devel