开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜