Changeset 33239 for lang/perl/Catalyst-Plugin-FillInForm-ForceUTF8
- Timestamp:
- 05/11/09 13:48:10 (4 years ago)
- Location:
- lang/perl/Catalyst-Plugin-FillInForm-ForceUTF8/trunk
- Files:
-
- 8 added
- 5 removed
- 5 modified
-
.shipit (added)
-
Changes (modified) (1 diff)
-
LICENSE (deleted)
-
MANIFEST (modified) (1 diff)
-
MANIFEST.SKIP (added)
-
Makefile.PL (modified) (1 diff)
-
README (modified) (1 diff)
-
Todo (deleted)
-
lib/Catalyst/Plugin/FillInForm/ForceUTF8.pm (modified) (5 diffs)
-
scripts (deleted)
-
t/00_compile.t (added)
-
t/01_load.t (deleted)
-
t/pod.t (deleted)
-
xt (added)
-
xt/01_podspell.t (added)
-
xt/02_perlcritic.t (added)
-
xt/03_pod.t (added)
-
xt/perlcriticrc (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Catalyst-Plugin-FillInForm-ForceUTF8/trunk/Changes
r2462 r33239 1 Revision history for Perl moduleCatalyst::Plugin::FillInForm::ForceUTF81 Revision history for Perl extension Catalyst::Plugin::FillInForm::ForceUTF8 2 2 3 3 0.02 Wed May 23 2007 4 4 - implemented finalize method 5 5 6 0.01 Thu Nov 2 20067 - original skeleton created with ExtUtils::ModuleMaker::TT6 0.01 Mon May 11 13:40:02 2009 7 - original version -
lang/perl/Catalyst-Plugin-FillInForm-ForceUTF8/trunk/MANIFEST
r2462 r33239 1 MANIFEST 1 Changes 2 inc/Module/Install.pm 3 inc/Module/Install/AuthorTests.pm 4 inc/Module/Install/Base.pm 5 inc/Module/Install/Can.pm 6 inc/Module/Install/Fetch.pm 7 inc/Module/Install/Include.pm 8 inc/Module/Install/Makefile.pm 9 inc/Module/Install/Metadata.pm 10 inc/Module/Install/TestBase.pm 11 inc/Module/Install/Win32.pm 12 inc/Module/Install/WriteAll.pm 13 inc/Spiffy.pm 14 inc/Test/Base.pm 15 inc/Test/Base/Filter.pm 16 inc/Test/Builder.pm 17 inc/Test/Builder/Module.pm 18 inc/Test/More.pm 19 lib/Catalyst/Plugin/FillInForm/ForceUTF8.pm 20 Makefile.PL 21 MANIFEST This list of files 22 META.yml 2 23 README 3 LICENSE 4 Todo 5 Changes 6 t/pod.t 7 Makefile.PL 8 lib/Catalyst/Plugin/FillInForm/ForceUTF8.pm 9 t/01_load.t 24 t/00_compile.t 25 xt/01_podspell.t 26 xt/02_perlcritic.t 27 xt/03_pod.t 28 xt/perlcriticrc -
lang/perl/Catalyst-Plugin-FillInForm-ForceUTF8/trunk/Makefile.PL
r2462 r33239 1 use ExtUtils::MakeMaker; 1 use inc::Module::Install; 2 name 'Catalyst-Plugin-FillInForm-ForceUTF8'; 3 all_from 'lib/Catalyst/Plugin/FillInForm/ForceUTF8.pm'; 2 4 3 # See lib/ExtUtils/MakeMaker.pm for details of how to influence 4 # the contents of the Makefile that is written. 5 WriteMakefile( 6 NAME => 'Catalyst::Plugin::FillInForm::ForceUTF8', 7 VERSION_FROM => 'lib/Catalyst/Plugin/FillInForm/ForceUTF8.pm', # finds $VERSION 8 AUTHOR => 'Hideo Kimura (hide@hide-k.net)', 9 ABSTRACT => 'Module abstract (<= 44 characters) goes here', 10 PREREQ_PM => { 11 'Test::Simple' => 0.44, 12 'Catalyst' => 0, 13 'HTML::FillInForm::ForceUTF8' => 0 14 }, 15 ); 5 requires 'Catalyst' => '5.7012'; 6 requires 'HTML::FillInForm::ForceUTF8'; 7 8 tests 't/*.t'; 9 author_tests 'xt'; 10 11 build_requires 'Test::More'; 12 use_test_base; 13 auto_include; 14 WriteAll; -
lang/perl/Catalyst-Plugin-FillInForm-ForceUTF8/trunk/README
r2462 r33239 1 perl Makefile.PL 2 make 3 make test 4 make install 1 This is Perl module Catalyst::Plugin::FillInForm::ForceUTF8. 2 3 INSTALLATION 4 5 Catalyst::Plugin::FillInForm::ForceUTF8 installation is straightforward. If your CPAN shell is set up, 6 you should just be able to do 7 8 % cpan Catalyst::Plugin::FillInForm::ForceUTF8 9 10 Download it, unpack it, then build it as per the usual: 11 12 % perl Makefile.PL 13 % make && make test 14 15 Then install it: 16 17 % make install 18 19 DOCUMENTATION 20 21 Catalyst::Plugin::FillInForm::ForceUTF8 documentation is available as in POD. So you can do: 22 23 % perldoc Catalyst::Plugin::FillInForm::ForceUTF8 24 25 to read the documentation online with your favorite pager. 26 27 Hideo Kimura -
lang/perl/Catalyst-Plugin-FillInForm-ForceUTF8/trunk/lib/Catalyst/Plugin/FillInForm/ForceUTF8.pm
r2462 r33239 2 2 3 3 use strict; 4 use NEXT;5 4 use HTML::FillInForm::ForceUTF8; 5 use MRO::Compat; 6 6 7 7 our $VERSION = '0.02'; … … 78 78 || $c->stash->{error}; 79 79 } 80 return $c-> NEXT::finalize(@_);80 return $c->method::next(@_); 81 81 } 82 82 … … 98 98 $c->fillform( \%data_hash ); 99 99 100 C<fillform> must be called after an HTML template has been 101 rendered. A typical way of using it is to place it immediately 102 after your C<forward> call to your view class, which might be 103 in a built-in C<end> action in your application class. 100 You can also hand in a hashref of additional params for 101 HTML::FillInForm->fill() if you like. Explicitly providing a 102 \%data_hash is mandatory for this use case. 104 103 105 sub render : ActionClass('RenderView') {} 106 107 sub end : Private { 108 my ( $self, $c ) = @_; 109 $c->forward('render'); 110 $c->fillform; 111 } 104 $c->fillform( $c->req->parameters, { 105 ignore_fields => [ 'pagesrc', 'pagedst' ], 106 fill_password => 0, 107 } ); 112 108 113 109 =cut … … 116 112 my $c = shift; 117 113 my $fdat = shift || $c->request->parameters; 114 my $additional_params = shift; 118 115 119 116 $c->response->output( 120 117 HTML::FillInForm::ForceUTF8->new->fill( 121 118 scalarref => \$c->response->{body}, 122 fdat => $fdat 119 fdat => $fdat, 120 %$additional_params, 123 121 ) 124 122 ); … … 137 135 } 138 136 ); 137 138 =head1 NOTES 139 140 This class does not play well with Catalyst's ActionClass('RenderView') 141 so you may want to check your C<end> method (in Controller/Root.pm or perhaps 142 MyApp.pm). If it looks like this: 143 144 sub end : ActionClass('RenderView') {} 145 146 Then you'll need to change it to something like this: 147 148 sub end : Private { 149 my ($self, $c) = @_; 150 $c->forward('render'); 151 $c->fillform($c->req->params) unless $c->res->output; 152 } 153 154 sub render : ActionClass('RenderView') { } 139 155 140 156 =head1 SEE ALSO
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)