velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eddie" <post2me...@hotmail.com>
Subject Re: Other symbol then "#" ?
Date Tue, 20 Mar 2001 12:18:46 GMT
Thanks guys,

To bad it's not possible to change the "#". (are your sure about that ??)

Then I will have to use the solution of Kili, thanks,
Ed

----- Original Message -----
From: Geir Magnusson Jr. <geirm@optonline.net>
To: <velocity-user@jakarta.apache.org>
Sent: Tuesday, March 20, 2001 1:57 PM
Subject: Re: Other symbol then "#" ?


> Louis Moore wrote:
> >
> > that way it will still write "$item.getName()" to the screen once I
think...
> >
> > what about this:
> >
> > <table>
> > #if($list)
> >   #foreach($item in $list)
> >    <tr>
> >       <td>
> >          $item.getName()
> >       </td>
> >    </tr>
> >   #end
> > #end
> > </table>
> >
> > this way if there is such a thing as $list in the context it will be
> > displayed, otherwise nothing is executed.
>
> That wasn't his point - velocity will ignore <!-- as those are simply
> 'schmoo' to Vel, not comments.
> (Vel comments are ## - see docs)
>
> What the original poster was trying to do is not see the VTL elements in
> an editor, I think, not conditionally do a loop.
>
> geir
>
> --
> Geir Magnusson Jr.                               geirm@optonline.net
> Developing for the web?  See http://jakarta.apache.org/velocity/
>

Mime
View raw message