You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Geir Magnusson Jr." <ge...@optonline.net> on 2000/12/01 01:59:57 UTC

Re: proposal : special conditional treatment of <% and %>

jvanzyl@periapt.com wrote:
> 
> On Thu, 30 Nov 2000, Geir Magnusson Jr. wrote:
> 
> > Daniel Rall wrote:
> > >
> > > "Geir Magnusson Jr." <ge...@optonline.net> writes:
> > >
> > >
> > > +1 on the condition that this behavior defaults to turned off.  I'm
> > > not really in favor of this "feature", but it will surely help in the
> > > spread of Velocity as a server-side markup.
> >
> > Yes, the intent was of course to keep them turned off by default.
> 
> I was thinking about the idea of an input filter that could
> be specified with a template loader. I wanted to implement
> an input filter for so that WM template stream could be
> transformed into a Velocity stream and then parsed.

LOL. :D
 
> Could we do the same with the <% %>, have an input filter
> for stripping the <% %> out of the stream and then passing
> it on to the parser, then the parser structure doesn't
> have to be altered at all.

Yep.  Good!  I like this much better.

geir



-- 
Geir Magnusson Jr.                               geirm@optonline.com
Dakota tribal wisdom: "when you discover you are riding a dead horse,
the best strategy is to dismount."

Re: proposal : special conditional treatment of <% and %>

Posted by Daniel Rall <dl...@finemaltcoding.com>.
"Geir Magnusson Jr." <ge...@optonline.net> writes:

> jvanzyl@periapt.com wrote:
> > I was thinking about the idea of an input filter that could
> > be specified with a template loader. I wanted to implement
> > an input filter for so that WM template stream could be
> > transformed into a Velocity stream and then parsed.
> 
> LOL. :D
>  
> > Could we do the same with the <% %>, have an input filter
> > for stripping the <% %> out of the stream and then passing
> > it on to the parser, then the parser structure doesn't
> > have to be altered at all.
> 
> Yep.  Good!  I like this much better.

So do I, +1!

Dan