api

http4k / org.http4k.template / HandlebarsTemplates

HandlebarsTemplates

class HandlebarsTemplates : Templates

Handlebars templating support. Use the function in the constructor to configure the instance.

Constructors

Name Summary
<init> Handlebars templating support. Use the function in the constructor to configure the instance.HandlebarsTemplates(configure: (Handlebars) -> Handlebars = { it })

Functions

Name Summary
Caching Load and caches templates from a file pathfun Caching(baseTemplateDir: String): TemplateRenderer
CachingClasspath Loads and caches templates from the compiled classpathfun CachingClasspath(baseClasspathPackage: String): TemplateRenderer
HotReload Hot-reloads (no-caching) templates from a file pathfun HotReload(baseTemplateDir: String): TemplateRenderer
fun HotReload(firstBaseDir: String, secondBaseDir: String, vararg rest: String): TemplateRenderer