Client Side Template



The arbitrary iterator allows you to iterate over dynamically created data.


The iterator is useful for inserting external data into the template when it is expanded.

{id} {total} {date}<br />
{*if !delivered}
{location} at {date}

Where tracking is a Javascript function that might be defined as follows:

function tracking(data,temp,root,parent,path){
    data is the current parent data context - in this case the current order
    assume code here that goes to a separately stored tracking array and
    returns an array of locations and dates

    return [
        {location: 'Boston MA', date: '9/4/2016'},
        {location: 'Albany NY', date: '9/5/2016'}