On Tuesday, October 1, 2002, at 03:25 AM, Jonathan Swartz wrote:
>> Seems like it would be nice to allow it to be in another
>> package, so people could keep a set of local escapes without
>> adding them to the HTML::Mason::Escapes namespace.
>> How about the following patch?
> The original idea was that, if the value was a string, it would
> be searched
> for in HTML::Mason::Escapes; otherwise, it had to be a code value.
Yes, I know. I didn't like that. Since it went a little
against the grain, I posted my patch rather than just applying
> The code value could be something in the user's own package,
> and AFAICT it's
> perfectly possible to specify a code value from the Apache config. What
> would we gain from this patch?
I would be able to specify
PerlSetVar MasonEscapeFlags "h => MyApp::Escapes::my_routine"
In general, people are going to want to write their own escaping
routines, and we should neither (a) make them shove them into
the HTML::Mason::Escapes namespace, nor (b) make it more
difficult/ugly to use user-defined routines than the ones we