Skip to content

Overriding widgetFile

snoyberg edited this page Dec 26, 2012 · 1 revision

You can modify the behavior of widgetFile in the scaffolding by changing the widgetFileSettings value in Settings.hs. As an example:

widgetFileSettings = def { wfsLanguages = \hset -> defaultTemplateLanguages hset ++
    [ TemplateLanguage True  "coffee"  Text.Coffee.coffeeFile   Text.Coffee.coffeeFileReload
    ] }
Clone this wiki locally