mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Use new Blaze._getTemplate in the Template.dynamic.
This commit is contained in:
@@ -10,7 +10,9 @@
|
||||
|
||||
Template.__dynamicWithDataContext.helpers({
|
||||
chooseTemplate: function (name) {
|
||||
return Template[name] || null;
|
||||
return Blaze._getTemplate(name, function () {
|
||||
return Template.instance();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user