chrisrueger opened a new pull request, #111:
URL: https://github.com/apache/freemarker/pull/111

   - New built-in for Strings `?is_blank`
   - `?is_blank` returns `true` if string is `null`, `empty` or contains only 
whitespaces
   - See testcases
   - it is similar to `somestring?trim?length == 0` (or the like), but shorter 
and avoids a new String object as `?trim` would produce
   
   ## Why?
   
   It is a typical check we do and it would be nice to have this in FM - if 
there are no objections against it. 
   I was thinking about adding `?is_empty` too (as an shorter alternative to 
`somestring?length == 0`) but wanted to confirm first. Let me know if that 
should be added too.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@freemarker.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to