[Catalyst-commits] r8233 - / Catalyst-Devel/1.00/trunk/lib/Catalyst
zarquon at dev.catalyst.perl.org
zarquon at dev.catalyst.perl.org
Mon Aug 18 23:38:19 BST 2008
Author: zarquon
Date: 2008-08-18 23:38:19 +0100 (Mon, 18 Aug 2008)
New Revision: 8233
Modified:
/
Catalyst-Devel/1.00/trunk/lib/Catalyst/Helper.pm
Log:
r13742 at harold: kd | 2008-08-18 23:07:49 +0100
doc improvements to Catalyst::Helper
Property changes on:
___________________________________________________________________
Name: svk:merge
- 1b129c88-ebf4-0310-add9-f09427935aba:/local/catalyst:4278
1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst:13735
3b9770f9-e80c-0410-a7de-cd203d167417:/local/catalyst:3514
dd8ad9ea-0304-0410-a433-df5f223e7bc0:/local/Catalyst:6909
+ 1b129c88-ebf4-0310-add9-f09427935aba:/local/catalyst:4278
1c72fc7c-9ce4-42af-bf25-3bfe470ff1e8:/local/Catalyst:13742
3b9770f9-e80c-0410-a7de-cd203d167417:/local/catalyst:3514
dd8ad9ea-0304-0410-a433-df5f223e7bc0:/local/Catalyst:6909
Modified: Catalyst-Devel/1.00/trunk/lib/Catalyst/Helper.pm
===================================================================
--- Catalyst-Devel/1.00/trunk/lib/Catalyst/Helper.pm 2008-08-18 19:03:08 UTC (rev 8232)
+++ Catalyst-Devel/1.00/trunk/lib/Catalyst/Helper.pm 2008-08-18 22:38:19 UTC (rev 8233)
@@ -544,36 +544,41 @@
These are the methods that the Helper classes can call on the
<$helper> object passed to them.
-=head2 render_file
+=head2 render_file ($file, $path, $vars)
-Render and create a file from a template in DATA using
-Template Toolkit.
+Render and create a file from a template in DATA using Template
+Toolkit. $file is the relevent chunk of the __DATA__ section, $path is
+the path to the file and $vars is the hashref as expected by
+L<Template Toolkit|Template>.
-=head2 get_file
+=head2 get_file ($class, $file)
Fetch file contents from the DATA section. This is used internally by
-L</render_file>.
+L</render_file>. $class is the name of the class to get the DATA
+section from. __PACKAGE__ or ( caller(0) )[0] might be sensible
+values for this.
=head2 mk_app
Create the main application skeleton. This is called by L<catalyst.pl>.
-=head2 mk_component
+=head2 mk_component ($app)
This method is called by L<create.pl> to make new components
for your application.
-=head3 mk_dir
+=head3 mk_dir ($path)
Surprisingly, this function makes a directory.
-=head2 mk_file
+=head2 mk_file ($file, $content)
Writes content to a file. Called by L</render_file>.
-=head2 next_test
+=head2 next_test ($test_name)
Calculates the name of the next numbered test file and returns it.
+Don't give the number or the .t suffix for the test name.
=head1 NOTE
More information about the Catalyst-commits
mailing list