Mason

文法メモ

Tag Name Contains Substitution Perl that is evaluated and sent as output % ... Perl line A single line of Perl code perl> ... Perl block Perl code Component call A call to another component, possibly with arguments ... init block Perl code…

Masonの設定

/etc/httpd/conf.d/mason.conf を以下のように作成 PerlModule HTML::Mason::ApacheHandler <LocationMatch "\.html$"> SetHandler perl-script PerlHandler HTML::Mason::ApacheHandler </LocationMatch>これで、拡張子が.htmlのファイルがMasonで処理される。