summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/handlebars/compiler.js')
-rw-r--r--lib/handlebars/compiler.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/handlebars/compiler.js b/lib/handlebars/compiler.js
index 2ffd829..d22a0d4 100644
--- a/lib/handlebars/compiler.js
+++ b/lib/handlebars/compiler.js
@@ -99,6 +99,15 @@ Handlebars.registerHelper('if', function(context, fn, inverse) {
}
});
+Handlebars.logger = {
+ DEBUG: 0, INFO: 1, WARN: 2, ERROR: 3, level: 3,
+
+ // override in the host environment
+ log: function(level, str) {},
+}
+
+Handlebars.log = function(level, str) { Handlebars.logger.log(level, str); };
+
// END(BROWSER)
exports.Handlebars = Handlebars;