| 1 | package Template::EmbeddedPerl::Compiled; | ||||||||||
| 2 | |||||||||||
| 3 | 6 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 6 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 6 | ▶ | use Template::EmbeddedPerl::Utils 'generate_error_message'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | sub render { | ||||||||||
| 8 | 64 | ▶ | my ($self, @args) = @_; | ||||||||
|
Subroutine
render: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||
| 9 | 64 | my $output; | |||||||||
| 10 | 64 | ▶ | eval { $output = $self->{code}->(@args); 1 } or do { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 0 | die generate_error_message($@, $self->{template}); | |||||||||
| 12 | }; | ||||||||||
| 13 | 64 | return $output; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | 6 | 1; | |||||||||
| 17 | |||||||||||
| 18 | =head1 NAME | ||||||||||
| 19 | |||||||||||
| 20 | Template::EmbeddedPerl::Compiled - Compiled template | ||||||||||
| 21 | |||||||||||
| 22 | =head1 DESCRIPTION | ||||||||||
| 23 | |||||||||||
| 24 | This module is used internally by L<Template::EmbeddedPerl> to represent a compiled template. It is not intended to be used directly. | ||||||||||
| 25 | |||||||||||
| 26 | =head1 METHODS | ||||||||||
| 27 | |||||||||||
| 28 | =head2 render | ||||||||||
| 29 | |||||||||||
| 30 | my $output = $compiled->render(@args); | ||||||||||
| 31 | |||||||||||
| 32 | Render the template with the given arguments. | ||||||||||
| 33 | |||||||||||
| 34 | =head1 SEE ALSO | ||||||||||
| 35 | |||||||||||
| 36 | L<Template::EmbeddedPerl> | ||||||||||
| 37 | |||||||||||
| 38 | =head1 AUTHOR | ||||||||||
| 39 | |||||||||||
| 40 | See L<Template::EmbeddedPerl> | ||||||||||
| 41 | |||||||||||
| 42 | =head1 COPYRIGHT & LICENSE | ||||||||||
| 43 | |||||||||||
| 44 | See L<Template::EmbeddedPerl> | ||||||||||
| 45 | |||||||||||
| 46 | =cut | ||||||||||
| 47 | |||||||||||
| 48 | |||||||||||