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