title: Implement custom template rendering in String using Kotlin
body: <p>I am trying to implement a for loop in my Kotlin script. The task is for example <code>The actions are {% foreach a in trip.actions %} a.name {% endfor %}</code> and I have to identify her the for loop and interpret the string. The interpreted string if trip.actions are [&quot;arrive&quot;, &quot;load&quot;, &quot;unload&quot;] should result in &quot;The actions are arrive, load, unload&quot; etc.</p>