on 12/1/2000 2:55 PM, "Jose Alberto Fernandez" <[EMAIL PROTECTED]>
wrote:
>> From: Jon Stevens [mailto:[EMAIL PROTECTED]]
>>
>> on 12/1/2000 2:09 PM, "Jose Alberto Fernandez"
>> <[EMAIL PROTECTED]>
>> wrote:
>>
>>> Well, I could argue that the need for encoding is part of
>> the View and
>>> not of the model or the controler. In other words, if I
>> where in need to
>>> generate some other text format, which I can do using Vel,
>> I should not
>>> need to change my model. I would expect I can use
>> "$x.getFieldwithText()"
>>> and this time getting not escaped output.
>>
>> Ok, so then what is wrong with:
>>
>> $escape.getText($x.getFieldWithText())
>>
>> You just went full circle on yourself dude.
>>
>
> I never, said that these approach wasn't clean. What I was
> advocating for was a way to make things more convinient for
> users. By allowing some of these repetitive things to be done
> by the Vel engine instead of requiring manual action.
The point being that you want to take something that you say should be
controlled in the template and move that into Velocity. That isn't possible
without really giving up the control in the template.
> Can I? Can you give me some hints where to look at examples?
You already gave the example.
-jon
--
twice of not very much is still a lot more than not very much