Added RenderUtils and more tests.
This commit is contained in:
parent
0da0e43aa5
commit
d7659f4052
24 changed files with 148 additions and 89 deletions
|
@ -39,10 +39,6 @@ public class Trim implements ValueRenderer {
|
|||
*/
|
||||
@Override
|
||||
public String render(Template template, String valueId, String differentiator) {
|
||||
if (template.hasValueId(differentiator)) {
|
||||
return template.getValue(differentiator).trim();
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
return RenderUtils.fetchValue(template, differentiator).trim();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue