Template path gets removed not only extension.
Closed this issue · 2 comments
nlcoredump commented
hi,
In ThymeleafTemplateService.java
method mergeTemplateIntoString
is returning thymeleafEngine.process(getNameWithoutExtension(trimmedTemplateReference), context)
This causes a template location "path/template" to given to the engine as "template". Because of this all email templates have to be in the root of the template dir, it would be nicer to accept templates with paths.
Maybe use removeExtension
instead of the google getNameWithoutExtension
which also removes the path.
robertotru commented
Hi @nlcoredump thanks for spotting this bug and providing a possible fix.
I will add more tests for this case and publish the fix in roughly 24 hours.
Best
robertotru commented
@nlcoredump problem fixed in release 0.6.1.
Thanks again for reporting.