From 8633f030e7622cbdb023a1c3b69693e76640fc67 Mon Sep 17 00:00:00 2001 From: Avital Oliver Date: Wed, 2 Oct 2013 22:13:06 -0700 Subject: [PATCH] enable dynamic templates specifically, make {{> foo}} where foo is a helper returning a template object render that template. --- packages/spacebars/spacebars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/spacebars/spacebars.js b/packages/spacebars/spacebars.js index 16bb660e95..3b2e2a1f69 100644 --- a/packages/spacebars/spacebars.js +++ b/packages/spacebars/spacebars.js @@ -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)