Skip to content

Instantly share code, notes, and snippets.

@jimbog
jimbog / helper.js
Last active August 29, 2015 14:11 — forked from gwendall/helper.js
UI.registerHelper('_', function() {
arguments = _.toArray(arguments);
var self = this,
fn = arguments[0];
arguments.shift(); // Removes the Underscore function
arguments.pop(); // Remove the Spacebars appended argument
return _[fn].apply(self, arguments);
});
/*
@jimbog
jimbog / helper.js
Last active August 29, 2015 14:09 — forked from gwendall/helper.js
UI.registerHelper('_', function() {
arguments = _.toArray(arguments);
var self = this,
fn = arguments[0];
arguments.shift(); // Removes the Underscore function
arguments.pop(); // Remove the Spacebars appended argument
return _[fn].apply(self, arguments);
});
/*