Welcome to K4, a from-scratch template engine inspired by .NET's T4 (Text Template Transformation Toolkit) engine.
<#@ template language="kotlin" #>
<#!
val names = listOf("Foo", "Bar", "Qux")
#>
Hello world!
<#! names.forEach { name -> #>
Hello to you, <#= name #>!
<# } #>
Goodbye world!
<#! code #>
<#= code #>
<#@ name [ properties ] #>
TODO
TODO
The MIT License (MIT). Please see the package license file for more information.