interface TemplateHandler : Handler<RoutingContext>
A handler which renders responses using a template engine and where the template name is selected from the URI path.
Author
Tim Fox
static val DEFAULT_CONTENT_TYPE: String
The default content type header to be used in the response |
|
static val DEFAULT_INDEX_TEMPLATE: String
The default index page |
|
static val DEFAULT_TEMPLATE_DIRECTORY: String
The default directory where templates will be looked for |
open static fun create(engine: TemplateEngine): TemplateHandleropen static fun create(engine: TemplateEngine, templateDirectory: String, contentType: String): TemplateHandler
Create a handler |
|
abstract fun setIndexTemplate(indexTemplate: String): TemplateHandler
Set the index template |