on 9/26/01 10:26 AM, "Jason van Zyl" <[EMAIL PROTECTED]> wrote:

> I agree more with Attila here. My particular opinion but I think #set is a
> bad thing to put in a template for a webapp. I would even go so far as to
> say that objects placed in the context for use in a webapp should be read
> only. 

I wasn't talking about #set.

Here is a somewhat lame example:

$looper.setCounter(0)
#foreach ($foo in $bar)
    $looper.CounterIncrement
#end

Yes, I know that we have $velocityCount, it was my idea to add it. :-)

But, what if the Counter did something like return only even numbers or
something.

> I believe that a designer shouldn't modify anything objects used in an
> application, and again it's my opinion but I don't buy the template engineer
> designation.

I believe that is a Utopian view.

:-)

-jon

Reply via email to