package greed.template;

import com.floreysoft.jmte.NamedRenderer;
import com.floreysoft.jmte.RenderFormatInfo;

import java.util.Locale;

/**
 * Greed is good! Cheers!
 */
public class FormatRenderer implements NamedRenderer {

    @Override
    public String render(Object o, String s, Locale locale) {
        return String.format(s, o);
    }

    @Override
    public String getName() {
        return "format";
    }

    @Override
    public RenderFormatInfo getFormatInfo() {
        return null;
    }

    @Override
    public Class<?>[] getSupportedClasses() {
        return new Class<?>[] { String.class };
    }
}

@@ -327,16 +327,27 @@
 .format(
+Locale.US, 
 s, o);%0A 

Set Locale to US