Add support for dynamic partial names

Uses the subexpression syntax to allow for dynamic partial lookups. Ex:

```
{{> (helper) }}
```

Fixes #933
This commit is contained in:
kpdecker
2015-01-18 13:23:45 -06:00
parent b0b522b4f8
commit cb51b82b8e
9 changed files with 92 additions and 9 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ PrintVisitor.prototype.BlockStatement = function(block) {
PrintVisitor.prototype.PartialStatement = function(partial) {
var sexpr = partial.sexpr,
content = 'PARTIAL:' + sexpr.path.original;
content = 'PARTIAL:' + sexpr.name.original;
if(sexpr.params[0]) {
content += ' ' + this.accept(sexpr.params[0]);
}