1 option
Embedding Perl in HTML with Mason / Dave Rolsky and Ken Williams.
- Format:
- Book
- Author/Creator:
- Rolsky, Dave, author.
- Williams, Ken, 1974- author.
- Language:
- English
- Subjects (All):
- Perl (Computer program language).
- HTML (Document markup language).
- Mason (Web site development tool).
- Web site development.
- Physical Description:
- 1 online resource (320 p.)
- Edition:
- 1st edition
- Place of Publication:
- Cambridge, Massachusetts : O'Reilly, [2002]
- Language Note:
- English
- System Details:
- text file
- 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 reusab
- 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
- Generating Something Besides HTML
- Notes:
- "Component-based templating system"--Cover.
- Description based on print version record.
- ISBN:
- 9781449399573
- 1449399576
- 9781449399399
- 1449399398
- OCLC:
- 780425283
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.