Embedding Perl in HTML with Mason
著者
書誌事項
Embedding Perl in HTML with Mason
O'Reilly, 2002, c2003
大学図書館所蔵 全1件
  青森
  岩手
  宮城
  秋田
  山形
  福島
  茨城
  栃木
  群馬
  埼玉
  千葉
  東京
  神奈川
  新潟
  富山
  石川
  福井
  山梨
  長野
  岐阜
  静岡
  愛知
  三重
  滋賀
  京都
  大阪
  兵庫
  奈良
  和歌山
  鳥取
  島根
  岡山
  広島
  山口
  徳島
  香川
  愛媛
  高知
  福岡
  佐賀
  長崎
  熊本
  大分
  宮崎
  鹿児島
  沖縄
  韓国
  中国
  タイ
  イギリス
  ドイツ
  スイス
  フランス
  ベルギー
  オランダ
  スウェーデン
  ノルウェー
  アメリカ
注記
Includes index
内容説明・目次
内容説明
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. The book shows 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. It covers these features from several angles, and includes a study of the authors' sample site where these features are used.
The book also 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 release of Mason 1.12, 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 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. ;
目次
Foreword Preface 1. Introduction A First Example The Main Features of Mason Alternatives to Mason Philosophy Getting Started with Mason 2. Components Mason from 10,000 Feet Core Concepts Basic Component Syntax Component Arguments Component Return Values Special Globals Sample Component 3. Special Components: Dhandlers and Autohandlers Dhandlers Autohandlers Using Autohandlers and Dhandlers Together 4. APIs Request Class and Object API Component Object API Buffers 5. Advanced Features Subcomponents Creating Components on the Fly Sharing Data Among Component Sections Methods and Attributes Calling Components with Content Blocks Advanced Inheritance Subrequests 6. The Lexer, Compiler, Resolver, and Interpreter Objects Passing Parameters to Mason Classes The Lexer The Compiler The Resolver The Interpreter 7. Using Mason with mod_perl Configuring Mason Document Root Versus the Component Root Not OK $r ApacheHandler Parameters To Autoflush or Not to Autoflush Generating Something Besides HTML Apache::Status and Mason 8. Building a Mason Site Functionality Directory Layout File Extensions Apache Configuration The Components Components with Access Controls All Done Further Directions 9. Mason and CGI CGI-Appropriate Situations CGI-Inappropriate Situations Creating a CGI-Based Site in Mason Using Mason Templates Inside Regular CGI Scripts Differences Between Mason Under CGI and od_perl 10. Scalable Design Modules Versus Components cOmponents as Independent Units Component Layout File Naming and Directory Layout Random Advice 11. Recipes Sessions Making Use of Autoflush User Authentication and Authorization Co-Branding Color Schemes Developer Environments Using Mason Outside of Dynamic Web Sites 12. Custom Mason Subclasses Class::Container as a Superclass Syntax: Your Very Own Lexer Output: Compiling to a Different Output Storage: Replacing the Resolver Request: A Request Object with a Built-in Session Argument Munging: ApacheHandler More Reader Exercises A. The Mason API B. Object Constructor Parameters C. Text Editors That Understand Mason D. Content Management with Bricolage Glossary Index
「Nielsen BookData」 より