api

http4k / org.http4k.template

Package org.http4k.template

Common code relevant to templating implementations.

Types

Name Summary
DustTemplates class DustTemplates : Templates
FreemarkerTemplates class FreemarkerTemplates : Templates
HandlebarsTemplates Handlebars templating support. Use the function in the constructor to configure the instance.class HandlebarsTemplates : Templates
Jade4jTemplates Jade4j templating support. Use the function in the constructor to configure the instance.class Jade4jTemplates : Templates
PebbleTemplates class PebbleTemplates : Templates
TemplateRenderer typealias TemplateRenderer = (ViewModel) -> String
Templates Supported template implementations for templating engine implementationsinterface Templates
ThymeleafTemplates class ThymeleafTemplates : Templates
ViewModel interface ViewModel

Exceptions

Name Summary
ViewNotFound data class ViewNotFound : RuntimeException

Extensions for External Classes

Name Summary
kotlin.Function1  

Companion Object Functions

Name Summary
view fun Body.Companion.~~view~~(renderer: TemplateRenderer, contentType: ContentType): BiDiBodyLens<ViewModel>
viewModel fun Body.Companion.viewModel(renderer: TemplateRenderer, contentType: ContentType): BiDiBodyLensSpec<ViewModel>