Added RenderUtils and more tests.

This commit is contained in:
Erik C. Thauvin 2023-03-15 12:05:39 -07:00
parent 0da0e43aa5
commit d7659f4052
24 changed files with 148 additions and 89 deletions

View file

@ -41,10 +41,6 @@ public class EncodeXml implements ValueRenderer {
*/
@Override
public String render(Template template, String valueId, String differentiator) {
if (template.hasValueId(differentiator)) {
return StringUtils.encodeXml(template.getValue(differentiator));
} else {
return "";
}
return StringUtils.encodeXml(RenderUtils.fetchValue(template, differentiator));
}
}