Coverage Summary for Class: RenderJte (dev.suresh.jte)
Class |
Class, %
|
Method, %
|
Branch, %
|
Line, %
|
Instruction, %
|
RenderJte |
0%
(0/1)
|
0%
(0/2)
|
|
0%
(0/12)
|
0%
(0/70)
|
package dev.suresh.jte
import App
import BuildConfig
import dev.suresh.config.*
import gg.jte.*
import gg.jte.output.*
data class KtConfig(val language: String = "Kotlin", val version: String, val appVersion: String?)
class RenderJte {
fun run() {
val tmplEngine =
TemplateEngine.createPrecompiled(ContentType.Plain).apply { setTrimControlStructures(true) }
val params =
mapOf(
"config" to JConfig(),
"ktConfig" to KtConfig(version = App.KOTLIN_VERSION, appVersion = App.VERSION))
listOf("hello.jte", "hello-kt.kte").forEach {
val output = StringOutput()
// tmplEngine.render(it, params, output)
output.writeContent(BuildConfig.time)
println("$it -> $output")
}
}
}