As stated in the official rendering plugin docs, the default location of templates for each implementation is "src/resources/templates" directory.
This is not the case for Jte implementation:
|
private fun defaultJteEngine() = TemplateEngine.create(DirectoryCodeResolver(File("src/main/jte").toPath()), ContentType.Html) |
The default behavior of the Jte impl is to search in the ./src/main/jte directory, so it won't load templates from app resources & it won't work by default, if you'll override working directory for your process. The default impl should use this engine:
TemplateEngine.create(ResourceCodeResolver("templates"), ContentType.Html)