diff options
author | kpdecker <kpdecker@gmail.com> | 2014-08-12 14:08:12 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2014-08-12 14:41:58 -0500 |
commit | e93d5166723c9ea7da3cca3e6b2ba524a19e768e (patch) | |
tree | ab392798253d7279503431955e45c9a88baa88e6 /lib/handlebars/compiler/javascript-compiler.js | |
parent | 2a47d66ee9fdf467588f68de48a521ed2a1f59e1 (diff) | |
download | handlebars.js-e93d5166723c9ea7da3cca3e6b2ba524a19e768e.zip handlebars.js-e93d5166723c9ea7da3cca3e6b2ba524a19e768e.tar.gz handlebars.js-e93d5166723c9ea7da3cca3e6b2ba524a19e768e.tar.bz2 |
Render indent for standalone partials
Diffstat (limited to 'lib/handlebars/compiler/javascript-compiler.js')
-rw-r--r-- | lib/handlebars/compiler/javascript-compiler.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/javascript-compiler.js b/lib/handlebars/compiler/javascript-compiler.js index bc9d3c1..c92cf58 100644 --- a/lib/handlebars/compiler/javascript-compiler.js +++ b/lib/handlebars/compiler/javascript-compiler.js @@ -596,8 +596,8 @@ JavaScriptCompiler.prototype = { // // This operation pops off a context, invokes a partial with that context, // and pushes the result of the invocation back. - invokePartial: function(name) { - var params = [this.nameLookup('partials', name, 'partial'), "'" + name + "'", this.popStack(), this.popStack(), "helpers", "partials"]; + invokePartial: function(name, indent) { + var params = [this.nameLookup('partials', name, 'partial'), "'" + indent + "'", "'" + name + "'", this.popStack(), this.popStack(), "helpers", "partials"]; if (this.options.data) { params.push("data"); |