Re: how to use multiple sequence in the same #list element

Daniel Dekany <[email protected]> Sat, 30 Apr 2016 15:47:52 +0200
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
The best I can think of, assuming that the data-model can't be changed
(so that it contains a list of pairs), is this:

<#list cars as car>
  ${car}
  ${fruits[car?index]}
</#list>


Saturday, April 30, 2016, 12:09:50 PM, eharibabu wrote:

> I have the two sequences as follows:
> cars = 'audi', 'mercedez', 'ferrari'
> fruits = 'apple', 'grapes', 'banana'
>
> using #list, I would like the output to be printed as follows:
>
> audi
> apple
>
> mercedes
> grapes
>
> ferrari
> banana
>
> I have tried using the following template, but it is throwing error:
>
> <#list cars as i, fruits as j>
> ${i}
> ${j}
> </#list>
>
> basically,my question is how can I use multiple sequences in the same #list
>
>
>
> --
> View this message in context:
> http://freemarker.624813.n4.nabble.com/how-to-use-multiple-sequence-in-the-same-list-element-tp4655622.html
> Sent from the freemarker-user mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications Manager
> Applications Manager provides deep performance insights into multiple tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>

-- 
Thanks,
 Daniel Dekany


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z