[Catalyst-commits] r7845 - trunk/Catalyst-View-Mason
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Wed May 28 14:48:21 BST 2008
Author: rafl
Date: 2008-05-28 14:48:21 +0100 (Wed, 28 May 2008)
New Revision: 7845
Modified:
trunk/Catalyst-View-Mason/README
Log:
Update README.
Modified: trunk/Catalyst-View-Mason/README
===================================================================
--- trunk/Catalyst-View-Mason/README 2008-05-28 13:48:16 UTC (rev 7844)
+++ trunk/Catalyst-View-Mason/README 2008-05-28 13:48:21 UTC (rev 7845)
@@ -39,12 +39,16 @@
<p>Your children are:
<ul>
% foreach my $child (@{$extra_info->{children}}) {
- <li>$child
+ <li><% $child %></li>
% }
</ul>
METHODS
- new($c, \%config)
+ new($app, \%config)
+ get_component_path
+ Returns the component path from $c->stash->{template} or
+ $c->request->match or $c->action (depending on the use_match setting).
+
process
Renders the component specified in $c->stash->{template} or
$c->request->match or $c->action (depending on the use_match setting) to
@@ -72,8 +76,18 @@
This string is appended (if present) to "$c->action" when generating
a template path.
+ Defaults to an empty string.
+
Example: "template_extension => '.html'"
+ "always_append_template_extension"
+ Set this to a true value if you want "template_extension" to be
+ appended to the component path even if it was explicitly set.
+
+ Defaults to 0.
+
+ Example: "always_append_template_extension => 1"
+
"use_match"
Use "$c->request->match" instead of "$c->action" to determine which
template to use if "$c->stash->{template}" isn't set. This option is
@@ -82,13 +96,16 @@
Currently defaults to 1, to avoid breaking older code, but new code
should always set this to 0.
+ Example: "use_match => 0"
+
The default HTML::Mason::Interp config options are as follows:
"comp_root"
- "$c->config->root"
+ "$app->config->root"
"data_dir"
- "File::Spec->tmpdir"
+ "File::Spec->catdir( File::Spec->tmpdir,
+ sprintf('%s_%d_mason_data_dir', $app, $<) )"
"allow_globals"
"qw/$c $name $base/"
More information about the Catalyst-commits
mailing list