You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Pavel Babachanakh <Pa...@uib.cherkassy.net> on 2001/11/29 07:30:53 UTC
Alignment
Hello all!!!
I have tried to use Velocity Template Engine (version 1.2 rc3).
It's wonderful. But I have a problem and I don't
understand how to resolve it. I will try to explain it with an
example. I wanted to print some text in 2 columns. For this I
wrote the following template:
#set( $list = ["1","12","123","1234"] )
First Second
#foreach( $l in $list)
$l $l
#end
I got the following output:
First Second
1 1
12 12
123 123
1234 1234
But I want a different output:
First Second
1 1
12 12
123 123
1234 1234
How I can get the output I want?
Thank you for your time.
Sincerely,
Pavel Babachanakh
paul@uib.cherkassy.net
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>