Embedding Perl in HTML with Mason /
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 delive...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Otros Autores: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Cambridge, Mass. :
O'Reilly,
©2003.
|
Temas: | |
Acceso en línea: | Texto completo (Requiere registro previo con correo institucional) |
Tabla de Contenidos:
- 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