[web-devel] How exactly do you add cassius files to a hamlet template?

Ian Duncan iand675 at gmail.com
Thu Feb 17 23:16:52 CET 2011


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20110217/32901f56/attachment.htm>


More information about the web-devel mailing list