or
Sign in to turn on 1-Click ordering
More Buying Choices
Have one to sell? Sell yours here
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Embedding Perl in HTML with Mason [Paperback]

Dave Rolsky , Ken Williams
3.8 out of 5 stars  See all reviews (10 customer reviews)

List Price: $34.95
Price: $22.37 & FREE Shipping on orders over $25. Details
You Save: $12.58 (36%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
Only 3 left in stock (more on the way).
Ships from and sold by Amazon.com. Gift-wrap available.
Want it tomorrow, June 19? Choose One-Day Shipping at checkout. Details
Shop the new tech.book(store)
New! Introducing the tech.book(store), a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Book Description

October 2002

Mason doesn't aim to be the one true Perl-based templating system for building web sites, but it's led many programmers to abandon their custom solutions when they've seen how much easier using Mason can be. It's a powerful, open source, Perl-based web site development and delivery engine, with features that make it an ideal backend for high load sites serving dynamic content. Mason uses a concept called components: a mix of HTML, Perl, and special Mason commands. These components can be entire web pages, or bits of HTML that can be embedded in top-level components. Shared and reusable, these components greatly simplify site maintenance: when you change a shared component, you instantly change all pages that refer to it.

Although using Mason isn't difficult, creating a Mason-based site can be tricky. Embedding Perl in HTML with Mason, written by members of Mason's core development team, shows you how to take advantage of Mason's strengths while avoiding the obstacles that inexperienced users may encounter. Mason's unique features, when used properly, can streamline the design of a web site or application. This concise book covers these features from several angles, and includes a study of the authors' sample site where these features are used.

Embedding Perl in HTML with Mason shows you how to create large, complex, dynamically driven web sites that look good and are a snap to maintain. You'll learn how to visualize multiple Mason-based solutions to any given problem and select among them. The book covers the latest line of Mason development 1.1x, which has many new features, including line number reporting based on source files, sub-requests, and easier use as a CGI. The only book to cover this important tool, Embedding Perl in HTML with Mason is essential reading for any Perl programmer who wants to simplify web site design. Learn how to use Mason, and you'll spend more time making things work, and less time reinventing the wheel.


Frequently Bought Together

Embedding Perl in HTML with Mason + Learning Perl + Programming Perl: Unmatched power for text processing and scripting
Price for all three: $76.19

Buy the selected items together


Product Details

  • Paperback: 318 pages
  • Publisher: O'Reilly Media; 1 edition (October 2002)
  • Language: English
  • ISBN-10: 0596002254
  • ISBN-13: 978-0596002251
  • Product Dimensions: 7 x 0.8 x 9.2 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 3.8 out of 5 stars  See all reviews (10 customer reviews)
  • Amazon Best Sellers Rank: #648,544 in Books (See Top 100 in Books)

Editorial Reviews

About the Author

is a programmer, author, and activist with a background in music composition and an obsession with Hong Kong films and the works of author Gene Wolfe. He has been actively developing Free (Perl) Software for several years and is a member of the Mason core development team. For more information about Embedding Perl in HTML with Mason please visit www.masonbook.com, a web site maintained by the authors where additional information and downloadable source code are available.

is a researcher in Document Categorization at the University of Sydney in Australia. He has written many Perl modules of varying utility, about 20 of which are available on CPAN. Like co-author Dave Rolsky, Ken is a member of the HTML::Mason core development team. His educational background is in mathematics and music. For more information about Embedding Perl in HTML with Mason please visit www.masonbook.com, a web site maintained by the authors where additional information and downloadable source code are available.


Product Details

  • Paperback: 318 pages
  • Publisher: O'Reilly Media; 1 edition (October 2002)
  • Language: English
  • ISBN-10: 0596002254
  • ISBN-13: 978-0596002251
  • Product Dimensions: 7 x 0.8 x 9.2 inches
  • Shipping Weight: 1.2 pounds (View shipping rates and policies)
  • Average Customer Review: 3.8 out of 5 stars  See all reviews (10 customer reviews)
  • Amazon Best Sellers Rank: #648,544 in Books (See Top 100 in Books)

More About the Author

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

3.8 out of 5 stars
(10)
3.8 out of 5 stars
Share your thoughts with other customers
Most Helpful Customer Reviews
12 of 12 people found the following review helpful
4.0 out of 5 stars Get me to the edge.... December 11, 2002
Format:Paperback
I am using Mason for about a year. Then I saw the Mason book. My first tought was: "Why should I buy a book about Mason - The online documentation is excellent...?".

But even the introduction chapters of this book gives you new ideas how to get things done. Starting with the second half of chapter 4 every Masonsite developer should take a close look. He will find a in deep discussion about every Mason feature - and more (e.g. The Bricolage-CMS-Appendix).

I my opinion there is no discussion "to buy or not to buy" this book. The only question is "when".

On the one hand this book can be a bit boring for "new" Mason user and as mentioned before the online documentation is very good. On the other hand if you have your first mason-site done and read this book you will have very likely the urgent desire to rewrite some code.

But this is a common perl problem: "There are many ways to get things done."

I dislike the "Example" chapter. One of the big advantages of Mason is the possibility to seperate perl-code and HTML. This ist not very well done within the example-site.

Conclusion: This book is not needed to get in touch with Mason althought usefull - but if you are really starting to deploy a site I strongly recommend this book.

Comment | 
Was this review helpful to you?
4 of 4 people found the following review helpful
5.0 out of 5 stars Essential for every Mason user December 5, 2002
Format:Paperback
As a longtime mason user (2 years, private and commercial use) I didn't have to think about buying this book. Dave Rolsky and Ken Williams, both core developers, introduce you to the concepts behind HTML::Mason and its many features which really make the life of a web developer way easier.... Even if you're already familiar with mason this book will serve you as an excellent reference. If you haven't heard of mason yet and you're into web development and Perl is your language of choice you should also definitely have a look at this book and mason in general.
Comment | 
Was this review helpful to you?
4 of 4 people found the following review helpful
5.0 out of 5 stars An excellent book December 5, 2002
By A Customer
Format:Paperback
From the standpoint of a person who knows Perl and Apache pretty well, I have to say this book is all I needed to get going with HTML::Mason. There are excellent online docs for Mason, there are places Mason fits better (and worse), and there are viable alternatives to Mason. This book covers that ground right off the bat, and I like that.

I was able to configure a couple servers, write up some test components, throw together some quick admin tools, and remake a custom database web app in a very short time using Mason and this book. It may not be for you if you are new to Perl or Apache, but I think Amazon has a wide selection of books available on both of these topics. Buy 'em, read 'em, then get this one.

I highly recommend it.

Comment | 
Was this review helpful to you?
5 of 6 people found the following review helpful
4.0 out of 5 stars Great Book but... December 11, 2002
By S. Boss
Format:Paperback
But.. it is a little too short. Not really but I would have loved to have more book. The book covers just about every topic. I personally would have enjoyed to have more examples in each area. They made sure that there is at least on example for each topic. They even give some information about other competing products and about products that use Mason as it's base (for example Bircolage - I think I spelled that correctly). I am really glad the book to come out, it is a perfect addition to my collection of O'Reilly and Perl books.

Thanks for a great book!

Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
4.0 out of 5 stars thorough and interesting August 5, 2007
Format:Paperback
I've worked on enough PHP and other lousy web code to have cringed when I read the title of this book: Embedding Perl in HTML with Mason. "No!" I cried, "don't cross the streams!" By the end of the book, I was feeling much more at ease (but I still cringe a little at that title).Mason is (though it seems debated) a cross between a lightweight application server and a very lightweight templating system. Requests go into Mason, which dispatches them to handlers and produces a response. The handlers and dispatch are simple but powerful: they use ideas object-oriented programming and allow the programmer to easily abstract and reuse code parts.

It seems like a very powerful system, but its programmer-facing interface is fairly simple. The book walked through all the basic Mason concepts (request, autohandlers, dhandlers, components, methods, etc.) quickly, but with sufficient explanation and demonstration to make everything clear. Chapter 8 walked through the construction of a web and database application, using all the major features covered so far. The features had already been so clearly explained that I felt comfortable just skimming through the chapter.

After that, the book began to cover some more esoteric concepts. Mason is made up of a number of classes: an interpreter, a lexer, a compiler, and a resolver. A programmer can write his own class to implement any of these components, changing the system to suit his whims.At the end of all this, I felt like I could really make Mason do a lot of cool things, and that it was a nice-sized solution for a lot of problems. (I still don't see myself actually /using/ Mason for anything, but now I know it's not so bad, and I know how to use it.
... Read more ›
Comment | 
Was this review helpful to you?
2 of 2 people found the following review helpful
5.0 out of 5 stars Wonderfull Mason December 4, 2002
Format:Paperback
Apart from being clear and well-written, this book is also the sum of all the knowledge of the Mason community, written by two of the developers of Mason themselves.
If you already use Mason, it's a must have.
If you are new to Mason, try it first (it isn't difficult at all), then read the book.
From my point of view this is an excellent technical book.
Comment | 
Was this review helpful to you?

What Other Items Do Customers Buy After Viewing This Item?


Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Forums

There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
Topic:
First post:
Prompts for sign-in
 



So You'd Like to...


Create a guide


Look for Similar Items by Category