Łukasz Kłosiński
11/18/2021, 8:54 PMfun Route.test() {
get("/test") {
call.respondText(
buildString {
appendHTML().div {
insert(TestTemplate(), TemplatePlaceholder())
}
}
)
}
}
To make it work I have to wrap my TestTemplate in another div.
<div>
<div>this is the element I want to get, without the outer element</div>
</div>
Is there a way of doing it so I can send the actual template only, so I can get below:
<div>this is the element I want to get, without the outer element</div>
Aleksei Tirman [JB]
11/22/2021, 1:04 PM