line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:YANICK'; |
2
|
|
|
|
|
|
|
# ABSTRACT: Object representing a Verbatim block |
3
|
|
|
|
|
|
|
$Template::Mustache::Token::Verbatim::VERSION = '1.4.0'; |
4
|
|
|
|
|
|
|
use Moo; |
5
|
20
|
|
|
20
|
|
125
|
|
|
20
|
|
|
|
|
41
|
|
|
20
|
|
|
|
|
120
|
|
6
|
|
|
|
|
|
|
use MooseX::MungeHas { has_ro => [ 'is_ro' ], has_rw => [ 'is_rw' ] }; |
7
|
20
|
|
|
20
|
|
7454
|
|
|
20
|
|
|
|
|
44
|
|
|
20
|
|
|
|
|
180
|
|
8
|
|
|
|
|
|
|
has_ro 'content'; |
9
|
|
|
|
|
|
|
has_rw 'last'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
my( $self, undef, undef, $indent ) = @_; |
12
|
|
|
|
|
|
|
|
13
|
143
|
|
|
143
|
0
|
324
|
my $value = $self->content; |
14
|
|
|
|
|
|
|
|
15
|
143
|
|
|
|
|
270
|
if( length $indent ) { |
16
|
|
|
|
|
|
|
if ( $self->last ) { |
17
|
143
|
50
|
|
|
|
304
|
$value =~ s/(\r?\n)/$1$indent/gm; |
18
|
0
|
0
|
|
|
|
0
|
$value =~ s/(\r?\n)$indent$/$1/; |
19
|
0
|
|
|
|
|
0
|
} |
20
|
0
|
|
|
|
|
0
|
else { |
21
|
|
|
|
|
|
|
$value =~ s/(\r?\n)/$1$indent/gm; |
22
|
|
|
|
|
|
|
} |
23
|
0
|
|
|
|
|
0
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
return $value; |
26
|
|
|
|
|
|
|
} |
27
|
143
|
|
|
|
|
555
|
|
28
|
|
|
|
|
|
|
1; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=pod |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
=encoding UTF-8 |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 NAME |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Template::Mustache::Token::Verbatim - Object representing a Verbatim block |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=head1 VERSION |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
version 1.4.0 |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 AUTHORS |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=over 4 |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=item * |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
Pieter van de Bruggen <pvande@cpan.org> |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item * |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
Yanick Champoux <yanick@cpan.org> |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item * |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Ricardo Signes <rjbs@cpan.org> |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=back |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This software is copyright (c) 2022, 2021, 2019, 2018, 2017, 2016, 2015, 2011 by Pieter van de Bruggen. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
66
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=cut |