 <p>You should use the following syntax:</p> <pre><code>&lt;ul&gt; $orders: {order| &lt;li&gt;Order $order.OrderId$&lt;/li&gt; }$ &lt;/ul&gt; </code></pre> <p>The documentation about this feature is really hard to find, I found some info <a href="http://www.cs.usfca.edu/~parrt/course/601/lectures/stringtemplate.html" rel="nofollow noreferrer">here</a> (search for the pipe symbol |).</p>