[
https://issues.apache.org/jira/browse/FREEMARKER-37?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16187808#comment-16187808
]
Daniel Dekany commented on FREEMARKER-37:
-----------------------------------------
As of the {{#skip}} VS {{#continue}} thing... the problem with this is that 99%
of the template authors will never grasp, let alone remember such fine
differences. So they don't make the situation much less error prone.
> ability to skip iteration in a list
> -----------------------------------
>
> Key: FREEMARKER-37
> URL: https://issues.apache.org/jira/browse/FREEMARKER-37
> Project: Apache Freemarker
> Issue Type: Improvement
> Reporter: Ivan Levchenko
> Fix For: 2.3.27-incubating
>
>
> Sorely missing ability to skip through an iteration of a list and continue on
> with the rest of the list. would like to write clean code like this:
> <#list collection as element>
> <#if element.attr1 == "some_value">
> <#continue /> <#-- skip over this item and run next item in
> loop -->
> </#if>
> do stuff here
> </#list>
> Thanks!
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)