<https://ktor.io/docs/server-velocity.html> this ...
# ktor
c
https://ktor.io/docs/server-velocity.html this document seems not working.
Copy code
call.respond(
                VelocityContent("templates/index.vl", mapOf("user" to sampleUser)),
            )
this code is not compilable with kotlin. Got an error message:
Copy code
No value passed for parameter 'typeInfo'
anyone can tell how to fix?
a
To solve the problem, you can add the following import:
Copy code
import io.ktor.server.response.respond
c
@Aleksei Tirman [JB] where should i put the templates directory in Android?
Copy code
Unable to find resource 'templates/index.vl'
got such an exception.