Meteor中已弃用的UI包

Meteor中已弃用的UI包,meteor,Meteor,与meteor 0.9.1一样,他们不推荐使用UI.insert、UI.render和UI.renderWithData,这是渲染模板并将其放置在DOM中的最佳方法?例如,我有这样的东西: UI.insert(UI.renderWithData(Template.comment_single, {comment: this}), $('#details')[0]); 那么,我如何更改这个不推荐的实现呢?您现在使用Blaze: Blaze.renderWithData(Template.comm

与meteor 0.9.1一样,他们不推荐使用UI.insert、UI.render和UI.renderWithData,这是渲染模板并将其放置在DOM中的最佳方法?例如,我有这样的东西:

UI.insert(UI.renderWithData(Template.comment_single, {comment: this}), $('#details')[0]);
那么,我如何更改这个不推荐的实现呢?

您现在使用Blaze:

Blaze.renderWithData(Template.comment_single,
        {comment: this},
        $('#details')[0]
)
请让我知道,如果这是工作,没有尝试它自己设置。迁移指南如下: