
6 Jun
2011
6 Jun
'11
1:59 p.m.
On Mon, Jun 6, 2011 at 12:37, Michael Snoyman
Sorry for a terse reply, but the trick is to replace addHamlet with addWidget, and the original code should work. Let me know if you're still having trouble, I should have more time to respond next week.
I'm not sure how addWidget helps with nesting, as it's just 'id' internally, right? So what I'd get out of it is still the same Widget type as what addHamlet was giving, which doesn't interpolate via ^{} as can be demonstrated with this example: blockW :: Widget () -> Widget () blockW contents = do addHamlet [hamlet|
Widget ()
blockW contents = do
body <- extractBody contents
addHamlet [hamlet|