-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Alex Robinson wrote: > I see from > http://www.masonhq.com/docs/manual/Devel.html#userdefined_escapes > that the way to override the default escaping at startup time is > PerlSetVar MasonEscapeFlags "h => \&HTML::Mason::Escapes::basic_html_escape" > or > $ah->interp->set_escape( h => \&HTML::Mason::Escapes::basic_html_escape ); > > Should it be possible to pass a mason_escape_flags parameter to the > constructor?
OFC, just look at: http://www.masonhq.com/docs/manual/Params.html#escape_flags > I would have thought so since I thought that all mason PerlSetVars > had uncamelcasedandunderscored equivalents. Obviously not though > since this gets carped out: "The following parameter was passed in > the call to HTML::Mason::ApacheHandler->new() but was not listed in > the validation options: mason_escape_flags". Drop the "mason" prefix. As a general rule, read: http://www.masonhq.com/docs/manual/Params.html#perl_and_apache_names You'll see that "Each parameter has two names: a Perl version and an Apache version. The Perl version uses lowercase_with_underscores, while the Apache version uses StudlyCaps with a Mason prefix. The conversion from one version to the other is otherwise very predictable." Looks like it wasn't predictable enough for you ;-) cheers - -- Marius Feraru -----BEGIN PGP SIGNATURE----- iD8DBQFGQiZvtZHp/AYZiNkRAtI1AJ46CxfbRYA9uO5qJ+E4777id6ZLlwCgsNDg D0mKi1OY2Ud2x3Aq7M0baDs= =Etf5 -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users