Created
May 8, 2011 21:42
-
-
Save wavded/961713 to your computer and use it in GitHub Desktop.
functions
This file contains 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
function render(view,locals){ | |
return function(req,res){ | |
res.render(view,locals || {}); | |
}; | |
} | |
var render = #(view,locals){ | |
return #(req,res){ | |
res.render(view,locals || {}); | |
} | |
} | |
var render = (view,locals) -> { | |
return (req,res) -> { | |
res.render(view,locals || {}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment