vertx / io.vertx.kotlin.ext.web.common.template / io.vertx.ext.web.common.template.TemplateEngine

Extensions for io.vertx.ext.web.common.template.TemplateEngine

renderAwait

suspend fun TemplateEngine.renderAwait(context: JsonObject, templateFileName: String): Buffer

Render the template. Template engines that support partials/fragments should extract the template base path from the template filename up to the last file separator.