You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <ji...@apache.org> on 2018/10/14 17:56:00 UTC

[jira] [Created] (VELOCITY-903) Empty loops handling with #foreach() ... #else nothing #end

Claude Brisson created VELOCITY-903:
---------------------------------------

             Summary: Empty loops handling with #foreach() ... #else nothing #end
                 Key: VELOCITY-903
                 URL: https://issues.apache.org/jira/browse/VELOCITY-903
             Project: Velocity
          Issue Type: Improvement
          Components: Engine
            Reporter: Claude Brisson
            Assignee: Claude Brisson


Empty loops handling via #else for #foreach:

{{#foreach($name in $people)}}
{{$name is here}}
{{#else}}
{{nobody here}}
{{#end}}




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org