Output Formatting

You can provide a formatting function to any data output by the repeater using the following format ${property:functionname}. Consider the following function which pads a string to 20 characters:

function pad(s){ while (s.length < 20) { s += '+'; } return s; }

We can apply this function to the output using the following template

<ul id='Listofdays4' > <li>${Name:pad}</li> </ul>

The repeater sends whatever it finds in the 'Name' property of each object to the pad function and whatever is returned from the pad function will be output to the document