Skip to content

Instantly share code, notes, and snippets.

@skahack
Created April 15, 2012 14:18
Show Gist options
  • Select an option

  • Save skahack/2393086 to your computer and use it in GitHub Desktop.

Select an option

Save skahack/2393086 to your computer and use it in GitHub Desktop.
CoffeeScript in Yesod

CoffeeScript in Yesod

Settings.hs

widgetFile :: String -> Q Exp
#if DEVELOPMENT
widgetFile = Yesod.Default.Util.widgetFileJsCss ("coffee", coffeeFileReload)
                                                ("lucius", luciusFileReload)
#else
widgetFile = Yesod.Default.Util.widgetFileJsCss ("coffee", coffeeFile)
                                                ("lucius", luciusFile)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment