@@ -0,0 +1,795 @@
+package fr.sii.ogham.sample.standard.template.thymeleaf;%0A%0Aimport org.thymeleaf.dialect.IDialect;%0A%0Aimport fr.sii.ogham.core.builder.MessagingBuilder;%0Aimport fr.sii.ogham.core.service.MessagingService;%0A%0Apublic class AddDialect %7B%0A%09public static void main(String%5B%5D args) %7B%0A%09%09IDialect dialect = null;%0A%09%09createService(dialect);%0A%09%7D%0A%0A%09private static MessagingService createService(IDialect dialect) %7B%0A%09%09// init the builder with default values%0A%09%09MessagingBuilder builder = new MessagingBuilder().useAllDefaults();%0A%09%09// register the dialect%0A%09%09builder.getEmailBuilder().getTemplateBuilder().getThymeleafParser().getEngine().addDialect(dialect);%0A%09%09builder.getSmsBuilder().getTemplateBuilder().getThymeleafParser().getEngine().addDialect(dialect);%0A%09%09// instantiate the service%0A%09%09return builder.build();%0A%09%7D%0A%7D%0A

Add custom dialect sample