hey everyone :wave:. Does anyone know a way (using...
# server
h
hey everyone 👋. Does anyone know a way (using kotlinx.html) to make a method that returns a html element? I can’t just do
fun DIV.foo() = form {}
as it returns Unit
s
what is your usecase?
h
kind of like templating html
like in apache velocity, you can parse another file with
#parse("path-to-file")
h
nope! I’ll take a look now
ah, so i should be thinking about it in the oposite way
s
Its a different way of thinking yes
I think @orangy also made a small library for templating but I cannot find it again
h
This page was perfect. Thank you!
o
It’s in ktor now, but it’s a single file