calling function with arguments in mustache javascript

后端 未结 4 1527

Is it possible to call a function with arguments with Mustache.js

{{somefunction(somevalue)}}
thank you

4条回答
  •  广开言路
    2020-12-05 17:39

    Are you trying to call a function as part of your parsing of the mustache code? or generate output, that would call the JavaScript function? e.g. This would output HTML that would call the function (I believe).

    {{#items}}
      
    {{/items}}
    

提交回复
热议问题