velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <jvan...@periapt.com>
Subject Re: dollar sign
Date Fri, 08 Sep 2000 08:59:56 GMT
On Fri, 8 Sep 2000, Stefan Mainz wrote:

> Jason van Zyl wrote:
> > 
> > On Fri, 8 Sep 2000, Stefan Mainz wrote:
> > 
> > > Travis Low wrote:
> > > >
> > > > Jon Stevens wrote:
> > > > >
> > > > > I don't get what you are saying? Are you saying make the syntax optional?
If
> > > > > so, I would be against that as well. I want to have as little optional
> > > > > syntax as possible. It makes things more concrete that way.
> > > >
> > > > Yes, I did say "optional".  I understand and agree that there should be
as
> > > > little optional syntax as possible.  But this would make templates much
more
> > > > readable, therefore more usable.  A small cost for a relatively large
benefit.
> > >
> > >
> > > what does
> > >
> > > #if( true )
> > > //
> > > #else
> > > //
> > > #end
> > >
> > > evaluate to?
> > >
> > 
> > This syntax is not available yet. When
> > it is, it will evalute to:
> > 
> > //
> 
> How do you know i did mean

#if (true)

is always true. 

#if (false)

is always false.

Just the words themselves behave like booleans.
 
> #if( "true" ) or
> #if( $true ) if you allow to omit the leading $ in if statements.

#if (true) is different then #if ($true).

> I guess we substitute true with ok in this example.

yes.

> > We would like to include this with Velocity,
> > but the WebMacro syntax comes first. That's
> > what I'm working on. Bob is working on
> > the new syntax.
> 
> I hope so, because we have tons of templates with webmacro syntax.

The WebMacro syntax will be fully supported.

jvz.

-- 

Jason van Zyl
jvanzyl@periapt.com


Mime
View raw message