* @param stGroup the object to register the renderers on
*/
public static void registerWebRenderers(StringTemplateGroup stGroup) {
stGroup.registerRenderer(HtmlString.class, HtmlString.ST_RENDERER);
stGroup.registerRenderer(JsString.class, JsString.ST_RENDERER);
stGroup.registerRenderer(String.class, new SimpleAttributeRenderer() {
public String toString(Object o) {
return StringEscapeUtils.escapeHtml(String.valueOf(o));
}
});
}