Skip to content

Instantly share code, notes, and snippets.

@MSch
Created March 4, 2011 17:17
Show Gist options
  • Save MSch/855187 to your computer and use it in GitHub Desktop.
Save MSch/855187 to your computer and use it in GitHub Desktop.
sharedHandlers.add('handlebars', function(format) {
var that = {};
that.handle = function(file, request, callback) {
that.next.handle(file, request, function(response) {
var parser;
if (file.extname() === '.handlebars') {
console.log(file);
callback(response);
} else {
callback(response);
}
});
};
return that;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment