mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
enable dynamic templates
specifically, make {{> foo}} where foo is a helper returning
a template object render that template.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user