NAME
MasonX::Resolver::Lexer - Extend syntax of HTML::Mason::Lexer
SYNOPSIS
In your httpd.conf file:
PerlSetVar MasonLexerClass MasonX::Lexer::ExtendedCompRoot
DESCRIPTION
This subclass of HTML::Mason::Lexer, enables the closing tag for component calls with content to have meaningful text within them rather than cryptic </&>s. (Nor, now that official Mason supports extended closing tags, are you tied to matching the exact component name)
Eg. altough the following is still fine
<&| /foo &>bar</&>
we can also use something like
<&! /foo &>bar</& foo>
USAGE
To use this module you need to tell Mason to use this class for its lexer:
PerlSetVar MasonLexerClass MasonX::Lexer::ExtendedCompRoot
If you are using a handler.pl file, simply add this parameter to the parameters given to the ApacheHandler constructor:
lexer_class => 'MasonX::Lexer::ExtendedCompRoot'
PREREQUISITES
HTML::Mason
BUGS
No known bugs.
VERSION
0.04
SEE ALSO
HTML::Mason::Resolver::File, MasonX::Request::ExtendedCompRoot, MasonX::Request::ExtendedCompRoot::WithApacheSession
AUTHOR
Alex Robinson, <cpan[@]alex.cloudband.com>
LICENSE
MasonX::Lexer::ExtendedCompRoot is free software and can be used under the same terms as Perl, i.e. either the GNU Public Licence or the Artistic License.