[ 
https://issues.apache.org/jira/browse/FREEMARKER-37?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Daniel Dekany resolved FREEMARKER-37.
-------------------------------------
       Resolution: Implemented
    Fix Version/s: 2.3.27-incubating

{{#continue}} is implemented in 2.3.27. I haven't even remembered that this 
issue was here, I was acting upon a much older sf.net RFE... So now I see the 
issues I have raised against it (:, but, since we have {{#break}} with similar 
problems (like {{#sep}} is not working properly)... and we still don't have 
list filtering, I guess it will just remain, and let's hope people will realize 
that this two doesn't play nicely with {{#sep}} and {{?odd_item}} and the like.

BTW, until 2.3.27 is released, it's documented here: 
http://freemarker.org/builds/fm2.3.27/versions_2_3_27.html

> 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)

Reply via email to