Mason Developer Manual
Download : Mason Developer Manual
While Mason can be used for tasks besides implementing a dynamic web site, that is what most people want to do with Mason, and is thus the focus of this manual.
NAME
DESCRIPTION
HOW TO USE THIS MANUAL
WHAT ARE COMPONENTS?
IN-LINE PERL SECTIONS
Examples and Recommended Usage
MASON OBJECTS
Request Objects
Component Objects
System Objects
CALLING COMPONENTS
Components that output HTML
Component Calls with Content
Advanced Components Calls with Content
Components that Return Values
Subrequests
TOP-LEVEL COMPONENTS
dhandlers
autohandlers
dhandlers vs. autohandlers
PASSING PARAMETERS
In Component Calls
In HTTP requests
Accessing Parameters
Parameter Passing Examples
Using @_ instead
INITIALIZATION AND CLEANUP
<%init>
<%cleanup>
<%once>
<%shared>
EMBEDDED COMPONENTS
<%def name>
<%method name>
FLAGS AND ATTRIBUTES
<%flags>
<%attr>
FILTERING
<%filter> section
COMMENT MARKERS
<%doc>
<% # comment... %>
%# comment
% if (0) { }
HTML/XML/... comments
OTHER SYNTAX
<%text>
Escaping expressions
User-defined Escapes
Manually applying escapes
Backslash at end of line
DATA CACHING
Basic Usage
Multiple Keys/Values
Expiration
Avoiding Concurrent Recomputation
Caching All Output
Cache Object
Choosing a Cache Subclass - with Cache::Cache
Choosing a Cache Subclass - with CHI
Accessing a Cache Externally
Mason 1.0x Cache API
WEB-SPECIFIC FEATURES
Sending HTTP Headers
Returning HTTP Status
Filters and $m->abort
External Redirects
Internal Redirects
USING THE PERL DEBUGGER
LOGGING
OBJECT-ORIENTED TECHNIQUES
Determining inheritance
Content wrapping
Accessing methods and attributes
Sharing data
Example
COMMON TRAPS
MASON AND SOURCE FILTERS
AUTHORS
SEE ALSO
Download : Mason Developer Manual
0 komentar:
Posting Komentar