Embedding Perl inHTML with Mason
January 4th, 2008 | posted by adminThis 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.
Finally, experience with mod_perl and Apache will be helpful for Chapter 7 and Chapter 9, which discuss integrating Mason with mod_perl and CGI, respectively, though the rest of the book should be easily comprehensible regardless of your familiarity with those particular topics.
#
Chapter 1
This chapter goes into more detail on what Mason is, highlights a few of its most notable features, and also discusses some alternatives to Mason.
#
Chapter 2
Components are the basic building block in Mason. This chapter covers component syntax and how components can call one another, much like Perl subroutines.
#
Chapter 3
The topic of this chapter is dhandlers and autohandlers, two features unique to Mason that really can help you maximize code reuse.
#
Chapter 4
This chapter is a bit more of a reference than those before it, as it has a lot of ground to cover. We cover the APIs of various objects that you might want to access from your components, primarily the Mason request object.
#
Chapter 5
Now that you know about component syntax, dhandlers, autohandlers, and a good chunk of the Mason API, it's time to learn about some of Mason's more complex features, like component methods and attributes, components that filter content, and Mason subrequests.
#
Chapter 6
These objects form the core of Mason itself, and their constructor parameters and object APIs let you customize the way Mason handles requests.
#
Chapter 7
Mason and mod_perl are designed to play nice together, and this chapter shows you how to make this happen.
#
Chapter 8
The obligatory sample site. See Mason at work on a real, live, on-the-Internet, usable-by-you web site.
#
Chapter 9
If you can't use mod_perl, you may still want to use Mason to generate web pages via CGI scripts.
#
Chapter 10
Mason is cool, but it's not magic. You still need to think about architecture and design when designing a Mason-based application. We try to give you a few things to think about here.
#
Chapter 11
This chapter demonstrates a number of different uses of Mason in order to stimulate your thinking, as well as provide some easily customized example code.
#
Chapter 12
A how-to on creating your own customized Mason subclasses.
To Download this E-Book Click Here.













Recent comments
10 weeks 4 days ago
19 weeks 2 days ago
24 weeks 23 hours ago
25 weeks 1 day ago
25 weeks 1 day ago
25 weeks 2 days ago
36 weeks 1 day ago
36 weeks 2 days ago
36 weeks 4 days ago
37 weeks 1 day ago