Mason is a powerful Perl-based web site development and delivery engine. With Mason you can embed Perl code in your HTML and construct pages from shared, reusable components.
Create a virtual server, or edit an existing virtual server. Enable Perl Extensions (API Support: Perl) and htaccess (Access: htaccess Support), and create a global .htaccess file containing the following:
HTML::Mason creates a private cache in the directory $ZEUSHOME/mason. If your web server is running as root, the Perl runner will not have the correct permissions to create this directory; create it manually, and set the permissions accordingly (eg, chown nobody).
Restart your virtual server, and verify that you can retrieve pages from the web site.
Insert the following text into one of your .html pages:
HTML::Mason will parse and handle all text inside the <% and %> brackets; when you reload the page, you should see the following:
Error messages are logged to the file $ZEUSHOME/web/log/errors. Review this file if you encounter any problems.
Content Manager [Administrator] 14 December 2005
Comments are closed for this post.