Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mala committed Jun 8, 2009
0 parents commit bf8ddec
Show file tree
Hide file tree
Showing 12 changed files with 134 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
@@ -0,0 +1,8 @@
cover_db
META.yml
Makefile
blib
inc
pm_to_blib
MANIFEST
Makefile.old
2 changes: 2 additions & 0 deletions .shipit
@@ -0,0 +1,2 @@
steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN
svk.tagpattern = release-%v
4 changes: 4 additions & 0 deletions Changes
@@ -0,0 +1,4 @@
Revision history for Perl extension Template::Stash::AutoEscape

0.01 Mon Jun 8 22:25:27 2009
- original version
19 changes: 19 additions & 0 deletions MANIFEST.SKIP
@@ -0,0 +1,19 @@
\bRCS\b
\bCVS\b
^MANIFEST\.
^Makefile$
~$
^#
\.old$
^blib/
^pm_to_blib
^MakeMaker-\d
\.gz$
\.cvsignore
^t/9\d_.*\.t
^t/perlcritic
^tools/
\.svn/
^[^/]+\.yaml$
^[^/]+\.pl$
^\.shipit$
13 changes: 13 additions & 0 deletions Makefile.PL
@@ -0,0 +1,13 @@
use inc::Module::Install;
name 'Template-Stash-AutoEscape';
all_from 'lib/Template/Stash/AutoEscape.pm';

# requires '';

tests 't/*.t';
author_tests 'xt';

build_requires 'Test::More';
use_test_base;
auto_include;
WriteAll;
27 changes: 27 additions & 0 deletions README
@@ -0,0 +1,27 @@
This is Perl module Template::Stash::AutoEscape.

INSTALLATION

Template::Stash::AutoEscape installation is straightforward. If your CPAN shell is set up,
you should just be able to do

% cpan Template::Stash::AutoEscape

Download it, unpack it, then build it as per the usual:

% perl Makefile.PL
% make && make test

Then install it:

% make install

DOCUMENTATION

Template::Stash::AutoEscape documentation is available as in POD. So you can do:

% perldoc Template::Stash::AutoEscape

to read the documentation online with your favorite pager.

mala
33 changes: 33 additions & 0 deletions lib/Template/Stash/AutoEscape.pm
@@ -0,0 +1,33 @@
package Template::Stash::AutoEscape;

use strict;
use warnings;
our $VERSION = '0.01';

1;
__END__
=head1 NAME
Template::Stash::AutoEscape -
=head1 SYNOPSIS
use Template::Stash::AutoEscape;
=head1 DESCRIPTION
Template::Stash::AutoEscape is
=head1 AUTHOR
mala E<lt>cpan@ma.laE<gt>
=head1 SEE ALSO
=head1 LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut
4 changes: 4 additions & 0 deletions t/00_compile.t
@@ -0,0 +1,4 @@
use strict;
use Test::More tests => 1;

BEGIN { use_ok 'Template::Stash::AutoEscape' }
10 changes: 10 additions & 0 deletions xt/01_podspell.t
@@ -0,0 +1,10 @@
use Test::More;
eval q{ use Test::Spelling };
plan skip_all => "Test::Spelling is not installed." if $@;
add_stopwords(map { split /[\s\:\-]/ } <DATA>);
$ENV{LANG} = 'C';
all_pod_files_spelling_ok('lib');
__DATA__
mala
cpan@ma.la
Template::Stash::AutoEscape
8 changes: 8 additions & 0 deletions xt/02_perlcritic.t
@@ -0,0 +1,8 @@
use strict;
use Test::More;
eval {
require Test::Perl::Critic;
Test::Perl::Critic->import( -profile => 'xt/perlcriticrc');
};
plan skip_all => "Test::Perl::Critic is not installed." if $@;
all_critic_ok('lib');
4 changes: 4 additions & 0 deletions xt/03_pod.t
@@ -0,0 +1,4 @@
use Test::More;
eval "use Test::Pod 1.00";
plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
all_pod_files_ok();
2 changes: 2 additions & 0 deletions xt/perlcriticrc
@@ -0,0 +1,2 @@
[TestingAndDebugging::ProhibitNoStrict]
allow=refs

1 comment on commit bf8ddec

@mattn
Copy link

@mattn mattn commented on bf8ddec Jun 9, 2009

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これくらいしか協力出来なくてすみません...

diff --git a/lib/Template/Stash/AutoEscape.pm b/lib/Template/Stash/AutoEscape.pm
index 1065412..593f27c 100644
--- a/lib/Template/Stash/AutoEscape.pm
+++ b/lib/Template/Stash/AutoEscape.pm
@@ -108,6 +108,8 @@ default is raw

 =head2 class_for

+=over 2
+
     Template::Stash::AutoEscape->class_for("HTML") # Template::Stash::AutoEscape::Escaped::HTML
     Template::Stash::AutoEscape->class_for("HTML" => "MyHTMLString");

Please sign in to comment.