3

The default template file extension of StringTemplate is ".st". Now I have several template files in a folder and their file extension is ".dwt". Is there a way to change the default template file extension and load all of them like below:

StringTemplateGroup group = new StringTemplateGroup("views", viewPath);
skaffman
  • 398,947
  • 96
  • 818
  • 769
Ethan
  • 33
  • 3

1 Answers1

0

A rather big hack that might work is to copy all the templates to a temp directory, but with the correct default extension type.

Daryl
  • 18,592
  • 9
  • 78
  • 145