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".
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".