
14 May
2011
14 May
'11
3:11 a.m.
defaultLayout contents = do PageContent title headTags bodyTags <- widgetToPageContent $ do addCassius ...
How does this work? Is bodyTags drawn from widgetToPageContent and then used as the third argument to PageContent?
I believe it's a pattern match; widgetToPageContent returns a PageContent (in some monad), which is bound to "PageContent title headTags bodyTags" -- so the three variables are bound to.
tia, Lee