Skip to content

Latest commit

 

History

History
69 lines (43 loc) · 1.18 KB

README.md

File metadata and controls

69 lines (43 loc) · 1.18 KB

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.