summaryrefslogtreecommitdiffstats
path: root/lib/handlebars/compiler/compiler.js
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2012-12-23 20:29:36 -0800
committerYehuda Katz <wycats@gmail.com>2012-12-23 20:29:36 -0800
commitbf4c813db03bbc3ab63e33256d7a6824cbd35e57 (patch)
tree7957c5ae1a54dea6ca8fbf5cd08cc037765ed560 /lib/handlebars/compiler/compiler.js
parent070e12f76f251fc038956f61f132dec99a898cd2 (diff)
parentb58c2dd0ad9b3454c2f1b39e5680d473693514f9 (diff)
downloadhandlebars.js-bf4c813db03bbc3ab63e33256d7a6824cbd35e57.zip
handlebars.js-bf4c813db03bbc3ab63e33256d7a6824cbd35e57.tar.gz
handlebars.js-bf4c813db03bbc3ab63e33256d7a6824cbd35e57.tar.bz2
Merge pull request #389 from leshill/partial_names
Partials can be paths
Diffstat (limited to 'lib/handlebars/compiler/compiler.js')
-rw-r--r--lib/handlebars/compiler/compiler.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/handlebars/compiler/compiler.js b/lib/handlebars/compiler/compiler.js
index 57516a5..297a553 100644
--- a/lib/handlebars/compiler/compiler.js
+++ b/lib/handlebars/compiler/compiler.js
@@ -160,7 +160,7 @@ Handlebars.JavaScriptCompiler = function() {};
},
partial: function(partial) {
- var id = partial.id;
+ var partialName = partial.partialName;
this.usePartial = true;
if(partial.context) {
@@ -169,7 +169,7 @@ Handlebars.JavaScriptCompiler = function() {};
this.opcode('push', 'depth0');
}
- this.opcode('invokePartial', id.original);
+ this.opcode('invokePartial', partialName.name);
this.opcode('append');
},