NAME
MasonX::Compiler::Strict - an HTML::Mason compiler that can reject more input
VERSION
version 0.001
OVERVIEW
This is an alternate compiler for HTML::Mason. It's meant to fill in for the default, HTML::Mason::Compiler::ToObject. (Don't trust things telling you that the default is HTML::Mason::Compiler. If you're using Mason, you're almost certainly have ToObject doing the work.)
By default, it should behave just like the normal compiler, but more options can be provided to make it stricter.
Right now, there's just one extra option, but there will be more.
ATTRIBUTES
allow_stray_content
If false, any text outside of a block (like a method or doc block), other than blank lines, will be fatal. Similar, any Perl lines other than comments will be fatal.
This option is especially useful when used with MasonX::Component::RunMain, in which the component's body is in the main
method, not just "all the stuff that wasn't in anything else."
AUTHOR
Ricardo Signes <rjbs@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Ricardo Signes.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.