After playing some more I think I'm going at this all wrong. I setup a Boot.scala instead and that seems to be closer but I'm still not sure how to change the source directories.
Before I had some code like this:
TemplateEngineFacade engineFacade = new TemplateEngineFacade();
engineFacade.setSourceDirectories(ImmutableList.of(new File("webapps/ROOT/WEB-INF/templates/")));
Issues:
1. My templates are in WEB-INF/templates of course, so how do I make that the source directory location when using Scalate with Spring?
2. More importantly (because I have no workaround), how and where do I configure number format for all templates rendered by Scalate through Spring? Can I set that up globally?
Before I had something like this but I was running that when calling layout explicitly:
final DefaultRenderContext context = new DefaultRenderContext(fullUri, ENGINE, new PrintWriter(buffer));
final DecimalFormat df = new DecimalFormat();
df.setGroupingUsed(false);
context.numberFormat_$eq(df);
Thanks!