Skip to content

FreeMarker Template load location missing #58

Description

@edigitman

I have a POC with the following dependencies
com.sparkjava spark-core 2.5
com.sparkjava spark-template-freemarker 2.5.5

I took the example from this repo, the FreeMarkerEngine class. I have the simple Main class and a simple template with a placeholder for the message.

The issue is that in the Main class there is a comment saying that the template will be loaded from src/test/resources/spark/template/freemarker but this is not configured in the FreeMarkerEngine class at line 89 configuration.setClassForTemplateLoading(FreeMarkerEngine.class, "");

The second argument should be "spark\template\freemarker".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions