Skip to content
This repository was archived by the owner on Nov 8, 2025. It is now read-only.

Inconsistent default behavior of Jte renderer #23

@dzikoysk

Description

@dzikoysk

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions