I cannot find how to configure the template engine to use GuavaHtmlStringify instead of the default one for the DefaultRockerTemplate.__internal if not by manually allocating the view and override DefaultRockerTemplate buildTemplate() to create a custom one (manually crafted) like this
private static final DefaultHtmlStringify STRINGIFY = new GuavaHtmlStringify();
private static class CustomFortunesTemplate extends Fortunes.Template {
public CustomFortunesTemplate(Fortunes model) {
super(model);
// super would set contentType HTML and force `DefaultHtmlStringify` :"(
__internal.setStringify(STRINGIFY);
}
}
I cannot find how to configure the template engine to use
GuavaHtmlStringifyinstead of the default one for theDefaultRockerTemplate.__internalif not by manually allocating the view and overrideDefaultRockerTemplate buildTemplate()to create a custom one (manually crafted) like this