meteor - Meteor 是否支持嵌套的助手(子表达式)?

标签 meteor handlebars.js spacebars

我会用这个:http://handlebarsjs.com/expressions.html#subexpressions
{{outer-helper (inner-helper 'abc') 'def'}}
但是 meteor 给了我一个错误......有一些使用嵌套助手的解决方案或解决方法吗?

谢谢!

最佳答案

现在可以使用 1.2 版

<p>
    Together we have
    {{pluralize (add myWidgetCount yourWidgetCount), "widget"}}
</p>

https://quip.com/RXFlAk9Rc2xI#dbfACAYxaJX

关于meteor - Meteor 是否支持嵌套的助手(子表达式)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23676596/

相关文章:

javascript - Meteor 对象在控制台中可用,但抛出“无法读取未定义的属性 findOne”

meteor - 如何在 Meteor.js 上同步客户端和服务器集合

javascript - 如何在 ember.js 中创建子导航

gruntjs - 组装 - 无法重复使用 {{>body}} : "The partial body could not be found"

javascript - iron-router notFound 模板在 meteor 中不起作用

javascript - React - 组件中的回调

javascript - Ember : Send child component's action to a parent component

javascript - 在 meteor 空格键模板中按索引返回数组项

javascript - 如何使用 Meteor Spacebars {{#each}} block 迭代字符串数组?

javascript - Meteor 中带有嵌套 #each 的动态循环?