6 Jun
2011
6 Jun
'11
5:34 p.m.
On Mon, Jun 6, 2011 at 12:22, Aren Olson <reacocard@gmail.com> wrote:
On Mon, Jun 6, 2011 at 00:41, Mark Bradley <barkmadley@gmail.com> wrote:
You should try including the widget using the ^{} syntax instead of the ${} syntax.
Doesn't appear to work. I tried this:
<snip>
Apparently I fail at using Haskell right; obviously contents <- addHamlet won't give me a Widget. :) This code works: blockW :: Widget () blockW = do let contents = addHamlet [hamlet|example|] body <- extractBody contents addHamlet [hamlet| <div ^{body}|] Thanks for the help Mark! -Aren