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>
精彩评论