diff options
author | wycats <wycats@gmail.com> | 2010-11-28 17:36:05 -0800 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-11-28 17:36:05 -0800 |
commit | 9846fb8a286a9c8d9d4d90c92be5789ebaba5910 (patch) | |
tree | edf3f132d3ddc98ace8e91f1917264765b1f2e08 /lib/handlebars/runtime.js | |
parent | 454d0a85b7333fb6675e759ae1259a0e5dc6c6b7 (diff) | |
download | handlebars.js-9846fb8a286a9c8d9d4d90c92be5789ebaba5910.zip handlebars.js-9846fb8a286a9c8d9d4d90c92be5789ebaba5910.tar.gz handlebars.js-9846fb8a286a9c8d9d4d90c92be5789ebaba5910.tar.bz2 |
Got Qunit tests running through RSpec and fixed a bunch of bugs... 33 fails from the original suite to go
Diffstat (limited to 'lib/handlebars/runtime.js')
-rw-r--r-- | lib/handlebars/runtime.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/handlebars/runtime.js b/lib/handlebars/runtime.js index 1e676ea..ad1ced6 100644 --- a/lib/handlebars/runtime.js +++ b/lib/handlebars/runtime.js @@ -96,11 +96,13 @@ Handlebars.Runtime.prototype = { for(var i=0, l=statements.length; i<l; i++) { this.accept(statements[i]); } + + return this.buffer; }, mustache: function(mustache) { var idObj = this.accept(mustache.id); - var params = this.evaluateParams(mustache.params); + var params = mustache.params; for(var i=0, l=params.length; i<l; i++) { params[i] = this.accept(params[i]).data; @@ -137,6 +139,8 @@ Handlebars.Runtime.prototype = { this.buffer += content.string; }, + comment: function() {}, + evaluateParams: function(params) { for(var i=0, l=params.length; i<l; i++) { params[i] = this.accept(params[i]).data; |