Map resProperties) {
if (templateGroovy) {
def engine = new SimpleTemplateEngine()
+ templateGroovy = templateGroovy.replaceAll(/(\$)(\W+|$)/, /\\$1$2/)
try {
objet."$nomChamp" = engine.createTemplate(templateGroovy).
make(resProperties).toString()
}
}
- public String message(String code, Object[] args = [],Locale locale = null) {
+ public String message(String code, Object[] args = [], Locale locale = null) {
def ctx = ApplicationHolder.getApplication().getMainContext()
MessageSource messageSource = (MessageSource) ctx.getBean("messageSource");
if (messageSource == null) {