javascriptjsondatatemplatefunction-parametertempo

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


Is it possible to use {{field}} as a parameter of a javascript function using Tempo?

Something like,

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

Solution

  • 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>