开发者

Using {{field}} as a parameter in Tempo (JavaScript/JSON)

开发者 https://www.devze.com 2023-03-08 00:08 出处:网络
Is it possible to use {{field}} as a param开发者_开发问答eter of a javascript function using Tempo?

Is it possible to use {{field}} as a param开发者_开发问答eter of a javascript function using Tempo?

Something like,

<ol id="marx-brothers">
    <li data-template>{% getAge({{born}}) %}</li>
</ol>


I read the documentation on Tempo. There is nothing there that suggests it can call a function while populating a template. If you need getAge called you have to do it before running the template in tempo.

<ol id="marx-brothers">
    <li data-template>{{getAgeResults}}</li>
</ol>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号