templateConfigurations = \ | |
ConditionalTemplateConfigurationFactory( \ | |
PathGlobMatcher("mail/**"), \ | |
FirstMatchTemplateConfigurationFactory( \ | |
ConditionalTemplateConfigurationFactory( \ | |
FileNameGlobMatcher("*.subject.*"), \ | |
TemplateConfiguration(outputFormat = PlainTextOutputFormat()) \ | |
), \ | |
ConditionalTemplateConfigurationFactory( \ | |
FileNameGlobMatcher("*.body.*"), \ | |
TemplateConfiguration(outputFormat = HTMLOutputFormat()) \ | |
), \ | |
noMatchErrorDetails = 'Mail template names must contain ".subject." or ".body."!' \ | |
) \ | |
) |