
13 May
2011
13 May
'11
11:11 p.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