Re: Is there a directive like <#continue> and <#exit>

Jiming Liu <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Guys,

Thanks for tips of it.


I expect this two directive is because they could make the template more
neat.

<#exit> would stop the rest render of the template and which would save CPU
times.

<#continue> is used to make the logic more clear since it could reduce loop
level.

An example:

<#list alist as c>
   <#if !c.valide><#continue></#if>
  bla bla
</#list>

Now

<#list alist as c>
   <#if c.valide>
  bla bla
   </#if>
</#list>



This is a simple example, you can easily think of complex examples.

I just think it would be cool to have the two directive.

Thanks

Jiming

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.