Mason is a powerful text templating tool for embedding Perl in text. The Embedding Perl in HTML with Mason book documents the HTML::Mason framework in detail, including chapters on component syntax, Mason object APIs, a sample site walkthrough, recipes, and details on Mason’s advanced features and how to use them.
This book assumes that the reader is familiar with Perl at an intermediate level and that common Perl idioms don’t stop you in your tracks. While you need not have written your own modules previously, familiarity with Perl’s object-oriented syntax will be helpful.
Since Mason is most often used in the generation of web sites, this book frequently presents its example in terms of generating HTML pages. You definitely do not need to be an HTML expert to read this book, but a passing familiarity with HTML will be helpful in understanding what the output is intended to look like.
As previously mentioned, Mason is well-suited for the generation of any sort of dynamic text, including markup languages such as XML, as well as configuration files, email bodies (think mail merge, perhaps), or even code.
Table of Contents
- Special Components: Dhandlers and Autohandlers
- Advanced Features
- The Lexer, Compiler, Resolver, and Interpreter Objects
- Using Mason with mod_perl
- Building a Mason Site
- Mason and CGI
- Custom Mason Subclasses
Download Free PDF / Read Online
Number of pages: 318
Link: Read online.