Re: Handling array in template

Michael Ludwig <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <20120409103454.GF5200@Dago>
Rajesh Saha schrieb am 09.04.2012 um 15:10 (+0530):
> 
> *I want my result to be like this :*
> 
> abc,def
> 
> *What I have done (in test.tt template file):*
> 
> [% FOREACH var IN vars %]
> [%- var -%][%- "," -%]
> [% END %]

http://template-toolkit.org/docs/manual/VMethods.html#section_join

Michael
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.