line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Catalyst::Helper::View::XSLT; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
762
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
30
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
77
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.09'; |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Catalyst::Helper::View::XSLT - Helper for XSLT Views |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 SYNOPSIS |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
script/create.pl view XSLT XSLT |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 DESCRIPTION |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Helper for XSLT Views. |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 METHODS |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head2 mk_compclass |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=cut |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub mk_compclass { |
27
|
0
|
|
|
0
|
1
|
|
my ( $self, $helper ) = @_; |
28
|
0
|
|
|
|
|
|
my $file = $helper->{file}; |
29
|
0
|
|
|
|
|
|
$helper->render_file( 'compclass', $file ); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 SEE ALSO |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
L<Catalyst::Manual>, L<Catalyst::Test>, L<Catalyst::Request>, |
35
|
|
|
|
|
|
|
L<Catalyst::Response>, L<Catalyst::Helper> |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 AUTHORS |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Martin Grigorov, E<lt>mcgregory {at} e-card {dot} bgE<gt> |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Simon Bertrang, E<lt>simon.bertrang@puzzworks.comE<gt> |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
=head1 LICENSE |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This library is free software . You can redistribute it and/or modify it under |
46
|
|
|
|
|
|
|
the same terms as perl itself. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
=cut |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
1; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
__DATA__ |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
__compclass__ |
55
|
|
|
|
|
|
|
package [% class %]; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
use strict; |
58
|
|
|
|
|
|
|
use base 'Catalyst::View::XSLT'; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
# example configuration |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
#__PACKAGE__->config( |
63
|
|
|
|
|
|
|
# # relative paths to the directories with templates |
64
|
|
|
|
|
|
|
# INCLUDE_PATH => [ |
65
|
|
|
|
|
|
|
# MyApp->path_to( 'root', 'xslt' ), |
66
|
|
|
|
|
|
|
# MyApp->path_to( 'templates', 'xsl' ), |
67
|
|
|
|
|
|
|
# ], |
68
|
|
|
|
|
|
|
# TEMPLATE_EXTENSION => '.xsl', # default extension when getting template name from the current action |
69
|
|
|
|
|
|
|
# DUMP_CONFIG => 1, # use for Debug. Will dump the final (merged) configuration for XSLT view |
70
|
|
|
|
|
|
|
# LibXSLT => { # XML::LibXSLT specific parameters |
71
|
|
|
|
|
|
|
# register_function => [ |
72
|
|
|
|
|
|
|
# { |
73
|
|
|
|
|
|
|
# uri => 'urn:catalyst', |
74
|
|
|
|
|
|
|
# name => 'Hello', |
75
|
|
|
|
|
|
|
# subref => sub { return $_[0] }, |
76
|
|
|
|
|
|
|
# }, |
77
|
|
|
|
|
|
|
# ], |
78
|
|
|
|
|
|
|
# }, |
79
|
|
|
|
|
|
|
#); |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 NAME |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
[% class %] - XSLT View Component |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 SYNOPSIS |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
L<[% app %]> |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 DESCRIPTION |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
Catalyst XSLT View. |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
=head1 AUTHOR |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
[% author %] |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
=head1 LICENSE |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
This library is free software . You can redistribute it and/or modify it under |
100
|
|
|
|
|
|
|
the same terms as perl itself. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=cut |
103
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
1; |