File Coverage

blib/lib/RapidApp/View/Template.pm
Criterion Covered Total %
statement 12 16 75.0
branch 0 4 0.0
condition n/a
subroutine 4 5 80.0
pod 1 1 100.0
total 17 26 65.3


line stmt bran cond sub pod time code
1             package RapidApp::View::Template;
2              
3 4     4   2377 use strict;
  4         8  
  4         115  
4 4     4   20 use warnings;
  4         8  
  4         117  
5              
6 4     4   19 use base 'Catalyst::View';
  4         7  
  4         453  
7              
8 4     4   26 use RapidApp::Util qw(:all);
  4         6  
  4         2121  
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