iterable

fun iterable(placeholder: String, iterable: Iterable<Any>): TemplateProcessor

Adds an iterable to replace a placeholder in the template code. The placeholder in the template must be fenced by [[for:NAME]] and [[endfor:NAME]], and the iterated value appears like a normal value: [[NAME]].

Return

this for concatenation

Parameters

placeholder

placeholder to replace

iterable

iterable to replace in change of placeholder