Limit search to available items
Book Cover
E-book
Author Rolsky, Dave.

Title Embedding Perl in HTML with Mason / Dave Rolsky & Ken Williams
Published Cambridge, Mass. : O'Reilly, ©2003

Copies

Description 1 online resource (xviii, 297 pages) : illustrations
Contents Table of Contents; Foreword; Preface; Intended Audience; Requirements; How to Read This Book; Overview; Other Resources; Typographic Conventions; We'd Like to Hear from You; Open Publication License; Acknowledgments; Introduction; A First Example; The Main Features of Mason; Components: Modular Design Elements; Object-Style Component Inheritance; Intelligent Caching Mechanisms; Integration with Apache and mod_perl; Alternatives to Mason; Embperl; Apache::ASP; HTML::Template; Text::Template; Template Toolkit; PHP; Philosophy; Getting Started with Mason; A Standalone Installation
A mod_perl InstallationTrying It Out; Components; Mason from 10,000 Feet; Core Concepts; Basic Component Syntax; Substitution Tags: ; Escaping substitutions; Embedded Perl: % Lines and Blocks; Calling Other Components: Tags; Components called with content; Other Named Blocks; blocks; blocks; blocks; blocks; blocks; blocks; blocks; and blocks; and blocks; blocks; Escaping a Newline; Component Arguments; Block Revisited; %ARGS; %ARGS Versus @_; Argument Examples
Arguments via Component CallsArguments via HTTP Requests; Component Return Values; Special Globals; m; r; Sample Component; Special Components: Dhandlers andAutohandlers; Dhandlers; Finer Control over Dhandlers; Dhandlers and Apache Configuration; Autohandlers; Using Autohandlers for Initialization; Using Autohandlers as Filters; Inspecting the Wrapping Chain; Using Autohandlers and Dhandlers Together; APIs; Request Class and Object API; Constructor Parameters; Calling Other Components; Aborting the Flow of Execution; The Wrapping Chain; Dhandler-Related Methods; Miscellaneous Methods
IntrospectionBuffer-Related Methods; Caching; Subrequests; Methods Available Only When Using ApacheHandler; Methods Available When Using ApacheHandler or CGIHandler; Getting in Close with Buffers; Component Object API; Methods for File-based Components; Buffers; Advanced Features; Subcomponents; Creating Components on the Fly; Sharing Data Among Component Sections; Methods and Attributes; Methods; Using Methods for Titles and Headers; Methods with Dynamic Content; Attributes; Top-Down Versus Bottom-Up Inheritance; Calling Components with Content Blocks; Advanced Inheritance
Inheritance and Multiple Component RootsAn Advanced Inheritance Example; Subrequests; A Caution About Autohandler Inheritance; The Lexer, Compiler, Resolver, and Interpreter Objects; Passing Parameters to Mason Classes; The Lexer; The Compiler; Altering Every Component's Content; Compiler Methods; The Resolver; The Interpreter; Request Parameters Passed to the Interpreter; Using Mason with mod_perl; Configuring Mason; Configuration via httpd.conf; Configuration via Custom Code; Document Root Versus the Component Root; Not OK; r; ApacheHandler Parameters; To Autoflush or Not to Autoflush
Summary 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
Notes Master and use copy. Digital master created according to Benchmark for Faithful Digital Reproductions of Monographs and Serials, Version 1. Digital Library Federation, December 2002. http://purl.oclc.org/DLF/benchrepro0212 MiAaHDL
English
Print version record
digitized 2010 HathiTrust Digital Library committed to preserve pda MiAaHDL
Subject Perl (Computer program language)
HTML (Document markup language)
Mason (Web site development tool)
Web site development.
HTML.
COMPUTERS -- Programming Languages -- C♯
COMPUTERS -- Programming Languages -- Java.
COMPUTERS -- Programming Languages -- Pascal.
HTML (Document markup language)
Mason (Web site development tool)
Perl (Computer program language)
Web site development
Form Electronic book
Author Williams, Ken, 1974-
LC no. 2002074892
ISBN 9781449399399
1449399398
9781449399573
1449399576