Skip to content

Instantly share code, notes, and snippets.

@wavded
Created May 8, 2011 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wavded/961713 to your computer and use it in GitHub Desktop.
Save wavded/961713 to your computer and use it in GitHub Desktop.
functions
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