Changed (Δ93 bytes):

raw changeset »

lib/Text/Template/Simple/Base/Examine.pm (5 lines added, 7 lines removed)

lib/Text/Template/Simple/Base/Parser.pm (1 lines added, 0 lines removed)

lib/Text/Template/Simple/Cache.pm (2 lines added, 3 lines removed)

lib/Text/Template/Simple/Constants.pm (1 lines added, 1 lines removed)

Up to file-list lib/Text/Template/Simple/Base/Examine.pm:

@@ -40,12 +40,10 @@ sub _examine {
40
40
}
41
41
42
42
sub _examine_glob {
43
   my $self = shift;
44
   my $TMP  = shift;
45
   my $ref  = ref $TMP;
46
   fatal( 'tts.base.examine.notglob' => $ref ) if $ref ne 'GLOB';
47
   fatal( 'tts.base.examine.notfh'           ) if not  fileno $TMP;
48
   return $self->io->slurp( $TMP );
43
   my($self, $thing) = @_;
44
   fatal( 'tts.base.examine.notglob' => ref $thing ) if ref $thing ne 'GLOB';
45
   fatal( 'tts.base.examine.notfh' ) if ! fileno $thing;
46
   return $self->io->slurp( $thing );
49
47
}
50
48
51
49
sub _examine_type {
@@ -59,7 +57,7 @@ sub _examine_type {
59
57
   if ( isaref( $TMP ) ) {
60
58
      my $ftype  = shift @{ $TMP } || fatal('tts.base.examine._examine_type.ftype');
61
59
      my $fthing = shift @{ $TMP } || fatal('tts.base.examine._examine_type.fthing');
62
      fatal('tts.base.examine._examine_type.extra') if @{ $TMP } > 0;
60
      fatal('tts.base.examine._examine_type.extra') if @{ $TMP };
63
61
      return uc $ftype, $fthing;
64
62
   }
65
63

Up to file-list lib/Text/Template/Simple/Base/Parser.pm:

@@ -10,6 +10,7 @@ use Text::Template::Simple::Constants qw
10
10
use constant MAPKEY_NUM => 5;
11
11
12
12
my %INTERNAL = __PACKAGE__->_set_internal_templates;
13
my %BLOCK; # block registry
13
14
14
15
sub _needs_object {
15
16
   my $self = shift;

Up to file-list lib/Text/Template/Simple/Cache.pm:

@@ -274,9 +274,8 @@ sub hit {
274
274
   my $cache_id = shift;
275
275
   my $chkmt    = shift || 0;
276
276
277
   return  $self->[CACHE_PARENT][CACHE_DIR]
278
         ? $self->_hit_disk(   $cache_id, $chkmt )
279
         : $self->_hit_memory( $cache_id, $chkmt );
277
   my $method = $self->[CACHE_PARENT][CACHE_DIR] ? '_hit_disk' : '_hit_memory';
278
   return $self->$method( $cache_id, $chkmt );
280
279
}
281
280
282
281
sub _hit_memory {

Up to file-list lib/Text/Template/Simple/Constants.pm:

@@ -150,7 +150,7 @@ use constant DIGEST_MODS => qw(
150
150
   Digest::Perl::MD5
151
151
);
152
152
153
use constant RE_PIPE_SPLIT   => qr/ \| (?:\s+)? (PARAM|FILTER|SHARE) : /xms;
153
use constant RE_PIPE_SPLIT   => qr/ \| (?:\s+)? (NAME|PARAM|FILTER|SHARE) : /xms;
154
154
use constant RE_FILTER_SPLIT => qr/ \, (?:\s+)? /xms;
155
155
use constant RE_INVALID_CID  => qr{[^A-Za-z_0-9]}xms;
156
156