[Catalyst-commits] r6781 -
trunk/Catalyst-View-Mason/lib/Catalyst/View
rafl at dev.catalyst.perl.org
rafl at dev.catalyst.perl.org
Tue Aug 28 17:01:16 GMT 2007
Author: rafl
Date: 2007-08-28 17:01:16 +0100 (Tue, 28 Aug 2007)
New Revision: 6781
Modified:
trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm
Log:
Document allow_globals.
Modified: trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm
===================================================================
--- trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm 2007-08-28 16:01:06 UTC (rev 6780)
+++ trunk/Catalyst-View-Mason/lib/Catalyst/View/Mason.pm 2007-08-28 16:01:16 UTC (rev 6781)
@@ -106,7 +106,7 @@
Note that the component name must be absolute, or is converted to absolute
(i.e., a / is added to the beginning if it doesn't start with one).
-Mason global variables C<$base>, C<$c>, and c<$name> are automatically
+Mason global variables C<$base>, C<$c>, and C<$name> are automatically
set to the base, context, and name of the app, respectively.
=cut
@@ -213,6 +213,13 @@
C<File::Spec-E<gt>tmpdir>
+=item C<allow_globals>
+
+C<qw/$c $name $base/>
+
+If you add additional allowed globals those will be appended to the list of
+default globals.
+
=back
=cut
More information about the Catalyst-commits
mailing list