
On Thursday, February 17, 2011 at 4:16 PM, Ian Duncan wrote: I assumed that I could change:
defaultLayout widget = do mmsg <- getMessage pc <- widgetToPageContent $ do widget addCassius $(Settings.cassiusFile "default-layout") hamletToRepHtml $(Settings.hamletFile "default-layout")
To:
defaultLayout widget = do mmsg <- getMessage pc <- widgetToPageContent $ do widget addCassius $(Settings.cassiusFile "other-stuff") addCassius $(Settings.cassiusFile "default-layout") hamletToRepHtml $(Settings.hamletFile "default-layout")
And that it would minify other-stuff.cassius and include it, but this is clearly wrong. I also tried this:
defaultLayout widget = do mmsg <- getMessage pc <- widgetToPageContent $ do widget addCassius $(Settings.cassiusFile "other-stuff") hamletToRepHtml $(Settings.hamletFile "default-layout")
Replacing default-layout completely, and it didn't work either. What am I doing wrong here?-- Ian Duncan
Actually, turns out it's a bug in Cassius. It apparently ignores any non-indented declarations, even if they are within curly braces. Solved it by reformatting by cassius code. Filing a bug report on the Hamlet package.
-- Ian Duncan