【问题标题】:Assemble handlebars nested math helpers组装车把嵌套数学助手
【发布时间】:2014-03-27 22:51:24
【问题描述】:

我想知道是否有办法将两个 [Assemble Math helpers]1 合并到一个操作中。

例如:

  • 我想做{{multiply 12 a}}然后
  • 对结果执行{{round}}

感谢您的帮助。

【问题讨论】:

    标签: node.js handlebars.js assemble


    【解决方案1】:

    使用 Handlebars 中的新子表达式,您可以做到 {{round (multiply 12 a)}}

    【讨论】:

    • 谢谢!这很有帮助。
    猜你喜欢
    • 2014-08-16
    • 1970-01-01
    • 2020-04-02
    • 1970-01-01
    • 2013-02-05
    • 2019-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多