NAME

Inline::Mason - Inline Mason Script

SYNOPSIS

use Inline::Mason 'as_subs';

print Inline::Mason::generate('HELLO');
print Inline::Mason::HELLO();
print HELLO();
print NIFTY(lang => 'Perl');

__END__

__HELLO__
% my $noun = 'World';
Hello <% $noun %>!
How are ya?

__NIFTY__
<% $ARGS{lang} %> is nifty!

DESCRIPTION

This module enables you to embed mason scripts in your perl code. Using it is simple, much is shown in the above.

'as_subs' is an option. Invoking Inline::Mason with it may let you treat virtual files as subroutines and call them directly.

This module uses Text::MicroMason as its backend instead of HTML::Mason, because it is much lighter and more accessible for this purpose. Please go to Text::MicroMason for details and its limitations.

AUTHOR

xern <xern@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2004 by xern

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself