In StringTemplate 4, the map operator :
maps a collection to a template that takes one argument. You need to declare the it
argument for the listItem
template:
listItem(it) ::= <<
<li>$it$</li>
>>
The warnings which you saw in the output say this:
- ST4 expected a template with 1 parameter, but you passed it
listItem
which takes 0 parameters. - You didn't declare the
it
parameter, but you referenced it withinlistItem
.