<#assign animals = ["aardvark", "kiwi", "gecko", "cat", "dog", "elephant", "squirrel", "zebra"]>

A simple test follows:

${message}

A list of ${animals?size} animals follows:

<#foreach animal in animals> ${animal}<#if animal_has_next>, <#else>.

The first animal is an ${animals?first}, and the last is a ${animals?last}.

The end.