Javascript 是的,还有咖啡脚本
我不知道在YesSOD应用程序中使用coffeeScript的文件扩展名是什么。我希望在这些地方看到文档,但找不到:Javascript 是的,还有咖啡脚本,javascript,coffeescript,yesod,Javascript,Coffeescript,Yesod,我不知道在YesSOD应用程序中使用coffeeScript的文件扩展名是什么。我希望在这些地方看到文档,但找不到: xhttp://www.yesodweb.com/book/shakespearean-templates xhttps://github.com/yesodweb/yesod/wiki xhttps://github.com/yesodweb/yesod/wiki/Cookbook 我在这里找到了源代码 谢谢。请参阅 通过更改Settings.hs中的widgetFileS
- xhttp://www.yesodweb.com/book/shakespearean-templates
- xhttps://github.com/yesodweb/yesod/wiki
- xhttps://github.com/yesodweb/yesod/wiki/Cookbook
widgetFileSettings = def { wfsLanguages = \hset -> defaultTemplateLanguages hset ++
[ TemplateLanguage True "coffee" Text.Coffee.coffeeFile Text.Coffee.coffeeFileReload
] }