Skip to content

luggsoft/k4

Repository files navigation

k4

K4

CircleCI License Gitter

Welcome to K4, a from-scratch template engine inspired by .NET's T4 (Text Template Transformation Toolkit) engine.

Syntax

<#@ template language="kotlin" #>
<#!

val names = listOf("Foo", "Bar", "Qux")

#>

Hello world!

<#! names.forEach { name -> #>

Hello to you, <#= name #>!

<# } #>

Goodbye world!

Code Tag

<#! code #>

Echo Tag

<#= code #>

Info Tag

<#@ name [ properties ] #>

Internals

TODO

Custom Plugins

TODO

License

The MIT License (MIT). Please see the package license file for more information.

Releases

No releases published

Languages