Partials can be paths
Allows partials with slashes, a common partial syntax. For example:
{{> shared/dude}}
This commit is contained in:
@@ -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');
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user