File Coverage

blib/lib/Template/Iterator/XS.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package Template::Iterator::XS;
2            
3 2     2   35252 use strict;
  2         7  
  2         93  
4 2     2   13 use warnings;
  2         4  
  2         325  
5            
6             require DynaLoader;
7             require Template::Iterator;
8             require Template::Constants;
9            
10             our $VERSION = 0.01;
11             our @ISA = qw( Template::Iterator DynaLoader );
12            
13             bootstrap Template::Iterator::XS $VERSION;
14            
15             _init( Template::Constants::STATUS_DONE() );
16            
17             1;
18            
19             =pod
20            
21             =head1 NAME
22            
23             Template::Iterator::XS - speedup TT2's Iterator
24            
25             =head1 DESCRIPTION
26            
27             The module is intended to function as a drop-in replacement for TT's native
28             Template::Iterator, for speedup. There is an existing mechanism for a similar
29             module, Template::Stash::XS which does the same, and can be selected during
30             configuration. The hope for this module is to function exacly in the same fashion.
31            
32             =head1 USAGE
33            
34             use Template;
35             use Template::Iterator::XS;
36             $Template::Config::ITERATOR = 'Template::Iterator::XS';
37            
38             =head1 AUTHOR
39            
40             Dmitry Karasik
41            
42             =head1 LICENCE
43            
44             This library is free software; you can redistribute it and/or modify it
45             under the same terms as Perl itself.
46            
47             The work is sponsored by reg.ru .
48            
49             =cut