line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package RapidApp::View::Template; |
2
|
|
|
|
|
|
|
|
3
|
4
|
|
|
4
|
|
2974
|
use strict; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
136
|
|
4
|
4
|
|
|
4
|
|
28
|
use warnings; |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
144
|
|
5
|
|
|
|
|
|
|
|
6
|
4
|
|
|
4
|
|
26
|
use base 'Catalyst::View'; |
|
4
|
|
|
|
|
11
|
|
|
4
|
|
|
|
|
547
|
|
7
|
|
|
|
|
|
|
|
8
|
4
|
|
|
4
|
|
30
|
use RapidApp::Util qw(:all); |
|
4
|
|
|
|
|
9
|
|
|
4
|
|
|
|
|
2792
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub process { |
12
|
0
|
|
|
0
|
1
|
|
my ($self, $c)= @_; |
13
|
0
|
0
|
|
|
|
|
my $template = $c->stash->{template} or die "No template specified"; |
14
|
0
|
0
|
|
|
|
|
$c->stash->{is_external_template}{$template} = 1 unless ($c->is_ra_ajax_req); |
15
|
0
|
|
|
|
|
|
$c->template_controller->view($c,$template); |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
__END__ |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 NAME |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
RapidApp::View::Template - Thin wrapper to dispatch to Template::Controller |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
=head1 DESCRIPTION |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
This is just a View interface to the Template::Controller system. |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 SEE ALSO |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
=over |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=item * |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
L<RapidApp::Manual::Modules> |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=back |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 AUTHOR |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Henry Van Styn <vanstyn@cpan.org> |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
This software is copyright (c) 2014 by IntelliTree Solutions llc. |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
51
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=cut |