Client Side Template
{*footer}{/*footer}
Description
Adds a footer to a template.
Footers can be added if the data object you pass into to the template expander contains array data. Using the special {*footer}...{/*footer} directives, you can a footer to a template. For example, assume we have the following array of JSON data:
{ employees: [ {firstname: 'Fred', lastname: 'Smith'}, {firstname: 'Laura', lastname: 'Linneker'} ] }
This data is an array of two employees. We would like to add the text "This is the footer - it prints after the last item in the array" underneath the array. This can be done using the {*header} and {*footer} directives. The template to add the header and footer looks like this:
{employees} Employee name: {firstname} {lastname}<br> {*footer} This is the footer - it prints after the last item in the array {/*footer} {/employees}
When the data is processed through the template, this is the resulting output we will see:
Employee name: Fred Smith Employee name: Laura Linneker This is the footer - it prints after the last item in the array