[Catalyst-commits] r11694 - in Catalyst-View-TD/trunk: . lib/Catalyst/View t

theory at dev.catalyst.perl.org theory at dev.catalyst.perl.org
Thu Oct 29 19:42:07 GMT 2009


Author: theory
Date: 2009-10-29 19:42:06 +0000 (Thu, 29 Oct 2009)
New Revision: 11694

Added:
   Catalyst-View-TD/trunk/t/03podspelling.t
Modified:
   Catalyst-View-TD/trunk/MANIFEST.SKIP
   Catalyst-View-TD/trunk/Makefile.PL
   Catalyst-View-TD/trunk/lib/Catalyst/View/TD.pm
Log:
Aye kant spel.

Modified: Catalyst-View-TD/trunk/MANIFEST.SKIP
===================================================================
--- Catalyst-View-TD/trunk/MANIFEST.SKIP	2009-10-29 19:36:05 UTC (rev 11693)
+++ Catalyst-View-TD/trunk/MANIFEST.SKIP	2009-10-29 19:42:06 UTC (rev 11694)
@@ -31,4 +31,4 @@
 \.gz$
 
 # Avoid spelling test.
-pod-spelling.t$
+podspelling.t$

Modified: Catalyst-View-TD/trunk/Makefile.PL
===================================================================
--- Catalyst-View-TD/trunk/Makefile.PL	2009-10-29 19:36:05 UTC (rev 11693)
+++ Catalyst-View-TD/trunk/Makefile.PL	2009-10-29 19:42:06 UTC (rev 11694)
@@ -12,10 +12,8 @@
 requires 'Catalyst'          => '5.7';
 requires 'Template::Declare' => '0.41';
 requires 'File::Find'        => 0;
-# requires 'Class::Accessor'   => 0;
-# requires 'Template::Timer'   => 0;
-# requires 'Path::Class'       => 0;
-# requires 'MRO::Compat'       => 0;
+requires 'Class::Accessor'   => 0;
+requires 'MRO::Compat'       => 0;
 
 test_requires 'Test::More';
 

Modified: Catalyst-View-TD/trunk/lib/Catalyst/View/TD.pm
===================================================================
--- Catalyst-View-TD/trunk/lib/Catalyst/View/TD.pm	2009-10-29 19:36:05 UTC (rev 11693)
+++ Catalyst-View-TD/trunk/lib/Catalyst/View/TD.pm	2009-10-29 19:42:06 UTC (rev 11694)
@@ -21,7 +21,7 @@
 
     myapp_create.pl view HTML TD
 
-Configure in F<lib/MyApp.pm> (could be set from configfile instead):
+Configure in F<lib/MyApp.pm> (could be set from config file instead):
 
     MyApp->config(
         name     => 'MyApp',
@@ -304,7 +304,7 @@
 =head2 Dynamic C<dispatch_to>
 
 Sometimes it is desirable to modify C<dispatch_to> for your templates at
-runtime. Additional paths can be prepended or appeneded C<dispatch_to> via the
+runtime. Additional paths can be prepended or appended C<dispatch_to> via the
 stash as follows:
 
     $c->stash->{prepend_template_classes} = [ 'MyApp::Other::Templates' ];
@@ -320,7 +320,7 @@
 Note that if you use C<dispatch_to()> to add extra template classes, they are
 I<permanently> added. You therefore B<must> check for duplicate paths if you
 do this on a per-request basis, as in this example. Otherwise, the class will
-continue to be added on every request, which woudld be a rather ugly memory
+continue to be added on every request, which would be a rather ugly memory
 leak.
 
 A safer approach is to use C<dispatch_to()> to overwrite the array of template
@@ -376,7 +376,7 @@
 
 But it can get to be a nightmare to manage I<all> of your templates in this
 one class. A better idea is to divide them up into other classes just
-as you have them in separate contollers. The C<auto_alias> feature of
+as you have them in separate controllers. The C<auto_alias> feature of
 Catalyst::View::TD does just that. Rather than define a template named
 C<users/list> in the dispatch class (C<MyApp::TD::XHTML>), create one
 named C<list> in C<MyApp::TD::XHTML::Users>:
@@ -397,7 +397,7 @@
 
 You can also use this approach to create utility templates. For example,
 if you wanted to put the header and footer output into utility templates,
-you could put them into a Util class:
+you could put them into a utility class:
 
     package TestApp::TD::XHTML::Util;
     use Template::Declare::Tags;
@@ -449,7 +449,7 @@
 If you'd rather control aliasing of templates yourself, you can always set
 C<auto_alias> to a false value. Then you'd just need to explicitly inherit
 from C<Template::Declare::Catayst> and do the mixing yourself. The equivalent
-to the auti-alising in the above examples would be:
+to the auto-aliasing in the above examples would be:
 
     package TestApp::TD::XHTML;
     use base 'Template::Declare::Catalyst';
@@ -466,7 +466,7 @@
 
 =head2 Rendering Views
 
-The Catlyst C<view()> method renders the template specified in the C<template>
+The Catalyst C<view()> method renders the template specified in the C<template>
 item in the stash.
 
     sub message : Global {

Added: Catalyst-View-TD/trunk/t/03podspelling.t
===================================================================
--- Catalyst-View-TD/trunk/t/03podspelling.t	                        (rev 0)
+++ Catalyst-View-TD/trunk/t/03podspelling.t	2009-10-29 19:42:06 UTC (rev 11694)
@@ -0,0 +1,14 @@
+#!/usr/bin/env perl -w
+
+use strict;
+use Test::More;
+eval "use Test::Spelling";
+plan skip_all => "Test::Spelling required for testing POD spelling" if $@;
+
+add_stopwords(<DATA>);
+all_pod_files_spelling_ok();
+
+__DATA__
+runtime
+namespace
+tclass




More information about the Catalyst-commits mailing list