6 Jun
2011
6 Jun
'11
12:05 p.m.
In Yesod, if I have two Widgets, how can I 'nest' the content of one widget inside one of the tags of the other? In effect, I want to be able to do something like widget <- do addHamlet [hamlet| some html |] addCassius [cassius| some css |] otherwidget <- do addHamlet [hamlet| <div ${widget} ] and end up with the body contents from widget inside otherwidget's <div> tag, while widget's cassius data still ends up in the page's <head> as normal. I can't find any documentation or examples of this, and nothing I tried would compile. Is this doable? If so, how? Thanks, -Aren