2017-08-04 19:38:25 +00:00
|
|
|
package net.shadowfacts.ekt
|
|
|
|
|
|
|
|
import java.io.File
|
2017-08-30 23:35:26 +00:00
|
|
|
import kotlin.concurrent.thread
|
2017-08-04 19:38:25 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @author shadowfacts
|
|
|
|
*/
|
|
|
|
fun main(args: Array<String>) {
|
2017-08-30 23:35:26 +00:00
|
|
|
for (i in 0..2) {
|
|
|
|
thread {
|
|
|
|
println("Calling from: $i")
|
|
|
|
render()
|
|
|
|
}
|
2017-08-05 17:41:24 +00:00
|
|
|
}
|
2017-08-30 23:35:26 +00:00
|
|
|
}
|
2017-08-04 19:38:25 +00:00
|
|
|
|
2017-08-30 23:35:26 +00:00
|
|
|
fun render(): String {
|
|
|
|
return EKT.renderClasspath("template", "/templates") {
|
|
|
|
"list" to (listOf(1, 2, 3) asType "List<Int>")
|
2017-08-04 19:38:25 +00:00
|
|
|
}
|
|
|
|
}
|