java - How to create a list inside Freemarker template -
i have set of functions_names generate while iterating list of values. want capture these values "functions_names" in list , use further processing. how can that?
thanks
freemarker doesn't support modifying collections. if want in freemarker (as opposed in java), can use sequence concatenation: <#assign mylist = mylist + [newitem]>. here create new sequence wraps 2 other sequences. aware resulting sequence slow if try indexed access in long list constructed way.
Comments
Post a Comment