Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
For GroovyTemplates its not very desirable to have alot of "null" printed everywhere we might have included a possible null value. So it would be nice to have a way to make GString print "" instead of null.
Velocity does that via $!
{text}which I think is ok, but we may just parse the Template text and always "insert" ${(text == null) ? "" : text"} since I think its always the desired behaviour for gstrings to not print null (within Templates).
Attachments
Attachments
Issue Links
- duplicates
-
GROOVY-481 Consider enhancing default string templates to support $foo or $!{foo}
- Closed
- is depended upon by
-
GROOVY-753 complete parser
- Closed