enable dynamic templates

specifically, make {{> foo}} where foo is a helper returning
a template object render that template.
This commit is contained in:
Avital Oliver
2013-10-02 22:13:06 -07:00
parent b24e54e3bf
commit 8633f030e7

View File

@@ -705,7 +705,7 @@ Spacebars.compile = function (inputString, options) {
// as a string, and then the renderer could choke on
// that in a way where it ends up in the error message.
var compFunc = 'function () { return ((' + nameCode +
var compFunc = 'function () { return (Spacebars.call(' + nameCode +
') || null); }';
if (path.length === 1)