Created
June 22, 2012 22:43
-
-
Save cha0s/2975596 to your computer and use it in GitHub Desktop.
mmm, coffee
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.register( | |
'.html' | |
compile: (source, options) -> | |
if typeof source isnt 'string' then source else | |
(options) -> | |
mustache.to_html( | |
source | |
options.locals || {} | |
options.partials || {} | |
) | |
render: (template, options) -> @compile(template, options)(options) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment