Foreach in Play Template!

play-1

(Roland4444) #1

How realize in Play Framework 1.4 similar Velocity tenmplating?? OtherInfo putting in render as arraylist

#foreach($var in $otherInfo)

$var

#end

#2

Perhaps using something like

<ul>
#{list items:products, as:'product'}
    <li>${product.name}. Price: ${product.price.format('## ###,00')} €</li>
#{/list}
</ul>

See https://www.playframework.com/documentation/1.4.0/tags