Permalink
Browse files

Added Handlebars.render function

  • Loading branch information...
1 parent 39832c0 commit 2fcb09ec251dc1bcfd1313b20f3f7cfee601a652 Jason Butz committed Nov 8, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/handlebars/compiler/compiler.js
@@ -1062,5 +1062,10 @@ Handlebars.compile = function(string, options) {
};
};
+Handlebars.render = function(string, data)
+{
+ data = data || {};
+ return Handlebars.compile(string)(data);
+};
// END(BROWSER)

0 comments on commit 2fcb09e

Please sign in to comment.