Allow custom helpers for benchmark templates

This commit is contained in:
kpdecker
2013-08-24 16:06:09 -05:00
parent 84420c1eb4
commit a532d28d94
+2 -1
View File
@@ -112,11 +112,12 @@ function makeSuite(name) {
var mustachePartials = details.partials && details.partials.mustache;
var mustacheSource = details.mustache;
var context = details.context;
var options = {helpers: details.helpers};
var error = function() { throw new Error("EWOT"); };
bench("handlebars", function() {
handlebarsTemplates[templateName](context);
handlebarsTemplates[templateName](context, options);
});
if (dust) {