[web-devel] [Yesod] Nesting widgets
reacocard at gmail.com
Mon Jun 6 06:05:37 CEST 2011
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
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?
More information about the web-devel