templateConfigurers = \ | |
ConditionalTemplateConfigurerFactory( \ | |
PathGlobMatcher("mail/**"), \ | |
FirstMatchTemplateConfigurerFactory( \ | |
ConditionalTemplateConfigurerFactory( \ | |
FileNameGlobMatcher("*.subject.*"), \ | |
TemplateConfigurer(outputFormat = PlainTextOutputFormat()) \ | |
), \ | |
ConditionalTemplateConfigurerFactory( \ | |
FileNameGlobMatcher("*.body.*"), \ | |
TemplateConfigurer(outputFormat = HTMLOutputFormat()) \ | |
), \ | |
noMatchErrorDetails = 'Mail template names must contain ".subject." or ".body."!' \ | |
) \ | |
) |