Allow custom helpers for benchmark templates
This commit is contained in:
+2
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user