我想将一个新参数传递给模板,同时保留它的原始数据上下文.
{{> myTemplate withIcon=True}}
我的解决方案是将这样的数据包装起来.
<code> {{> myTemplate originalData=this withIcon=True}} </code>
有更好的解决方案吗?
meteor
meteor ×1