mirror of https://github.com/shadowfacts/ekt.git
17 lines
336 B
Kotlin
17 lines
336 B
Kotlin
package net.shadowfacts.ekt
|
|
|
|
import java.io.File
|
|
|
|
/**
|
|
* @author shadowfacts
|
|
*/
|
|
fun main(args: Array<String>) {
|
|
val res = EKT.render(File("template.ekt"), dumpGeneratedScript = File("script.kts")) {
|
|
"list" to (listOf(1, 2, 3) asType "List<Int>")
|
|
}
|
|
|
|
File("result.txt").apply {
|
|
if (!exists()) createNewFile()
|
|
writeText(res)
|
|
}
|
|
} |