| 1 | package Tenjin::Preprocessor; | ||
| 2 | |||
| 3 | 8 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 8 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 8 | our $VERSION = "1.000000"; | |
| 7 | 8 | $VERSION = eval $VERSION; | |
| 8 | |||
| 9 | 8 | our @ISA = ('Tenjin::Template'); | |
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Tenjin::Preprocessor - Preprocessing Tenjin templates | ||
| 14 | |||
| 15 | =head1 SYNOPSIS | ||
| 16 | |||
| 17 | used internally. | ||
| 18 | |||
| 19 | =head1 DESCRIPTION | ||
| 20 | |||
| 21 | This module provides some methods needed for preprocessing templates. | ||
| 22 | |||
| 23 | =head1 INTERNAL METHODS | ||
| 24 | |||
| 25 | =head2 stmt_pattern() | ||
| 26 | |||
| 27 | =cut | ||
| 28 | |||
| 29 | sub stmt_pattern { | ||
| 30 | 0 | ▶ | return shift->SUPER::compile_stmt_pattern('PL'); |
|
Subroutine
stmt_pattern: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 31 | } | ||
| 32 | |||
| 33 | =head2 expr_pattern() | ||
| 34 | |||
| 35 | =cut | ||
| 36 | |||
| 37 | sub expr_pattern { | ||
| 38 | 0 | ▶ | return qr/\[\*=(=?)(.*?)(=?)=\*\]/s; |
|
Subroutine
expr_pattern: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 39 | } | ||
| 40 | |||
| 41 | =head2 add_expr() | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | sub add_expr { | ||
| 46 | 0 | ▶ | my ($self, $bufref, $expr, $flag_escape) = @_; |
|
Subroutine
add_expr: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 47 | |||
| 48 | 0 | $expr = "decode_params($expr)"; | |
| 49 | 0 | $self->SUPER::add_expr($bufref, $expr, $flag_escape); | |
| 50 | } | ||
| 51 | |||
| 52 | 8 | 1; | |
| 53 | |||
| 54 | =head1 SEE ALSO | ||
| 55 | |||
| 56 | L<Tenjin>, L<Tenjin::Template>. | ||
| 57 | |||
| 58 | =head1 AUTHOR, LICENSE AND COPYRIGHT | ||
| 59 | |||
| 60 | See L<Tenjin>. | ||
| 61 | |||
| 62 | =cut | ||