Closed KurangKering closed 1 year ago
application.properties
pebble.prefix=src/main/resources/templates
pebble.suffix=.html
pebble.cache=false
Bean
@Bean
fun pebbleLoader(): FileLoader {
val fileLoader = FileLoader()
fileLoader.prefix = "src/main/resources/templates"
fileLoader.suffix = ".html"
return fileLoader
}
This java template engine is simply amazing. but how do I change the template path loader so I don't have to re-build every time something changes to the html file?
for example using freemaker i can change it like below.
spring.freemarker.template-loader-path=file:src/main/resources/templates/
thank you