【发布时间】:2016-01-06 08:30:34
【问题描述】:
我想根据辅助值呈现不同的模板。我将尝试编写和示例。
...
{{#with myHelper}}
{{> this }}
{{/with}}
...
使用 helper 定义如下:
...
myHelper : function(){
return MyCollection.findOne({ userId: Meteor.userId() }).personalizeTemplate;
}
...
不幸的是,这种方式不起作用。有什么解决办法吗?
【问题讨论】:
标签: javascript meteor handlebars.js spacebars