api

http4k / org.http4k.template / PebbleTemplates

PebbleTemplates

class PebbleTemplates : Templates (source)

Constructors

Name Summary
<init> PebbleTemplates(configure: (Builder) -> Builder = { it }, classLoader: ClassLoader = ClassLoader.getSystemClassLoader())

Functions

Name Summary
Caching fun Caching(baseTemplateDir: String): TemplateRenderer
Load and caches templates from a file path
CachingClasspath fun CachingClasspath(baseClasspathPackage: String): TemplateRenderer
Loads and caches templates from the compiled classpath
HotReload fun HotReload(baseTemplateDir: String): TemplateRenderer
Hot-reloads (no-caching) templates from a file path

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T