Skip to content

Instantly share code, notes, and snippets.

@Tehnix
Created January 18, 2014 22:03
Show Gist options
  • Select an option

  • Save Tehnix/8497304 to your computer and use it in GitHub Desktop.

Select an option

Save Tehnix/8497304 to your computer and use it in GitHub Desktop.
Example of combining js and css in the defaultLayout
defaultLayout widget = do
master <- getYesod
mmsg <- getMessage
pc <- widgetToPageContent $ do
$(combineStylesheets 'StaticR
[ css_normalize_css
, css_bootstrap_css
, css_fonts_css
])
$(combineScripts 'StaticR
[ js_jquery_js
, js_otherscript_js
])
$(widgetFile "layouts/default-layout")
giveUrlRenderer $(hamletFile "templates/layouts/default-layout-wrapper.hamlet")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment