"Geir Magnusson Jr." wrote:

> Since you now have to sprinkle Velocimacros around every single use of the
> technique you want to use :
> 
>  #macro(ident, $value)$xml.turnOff(true)$value$xml.turnOff(false)#end
> 
> Why not just do the escaping in the Velocimacro itself?  Or use a
> context-based tool directly?

As I understand, this macro is for the 5% of the cases when data is
placed in the template *unescaped*, hence ident=identity.
In the other 95% of the cases, no extra VTL markup is needed to perform
the escaping, which makes the way more readable.

For me, the Listener registered in the context sounds sensible and I
give my non-commiter +1 to it.

Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl

Reply via email to