| Catalyst-View-XSLT documentation | Contained in the Catalyst-View-XSLT distribution. |
Catalyst::Helper::View::XSLT - Helper for XSLT Views
script/create.pl view XSLT XSLT
Helper for XSLT Views.
Martin Grigorov, <mcgregory {at} e-card {dot} bg>
Simon Bertrang, <simon.bertrang@puzzworks.com>
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
[% class %] - XSLT View Component
Catalyst XSLT View.
[% author %]
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
| Catalyst-View-XSLT documentation | Contained in the Catalyst-View-XSLT distribution. |
package Catalyst::Helper::View::XSLT; use strict; use warnings; our $VERSION = '0.08';
sub mk_compclass { my ( $self, $helper ) = @_; my $file = $helper->{file}; $helper->render_file( 'compclass', $file ); }
1; __DATA__ __compclass__ package [% class %]; use strict; use base 'Catalyst::View::XSLT'; # example configuration #__PACKAGE__->config( # # relative paths to the directories with templates # INCLUDE_PATH => [ # MyApp->path_to( 'root', 'xslt' ), # MyApp->path_to( 'templates', 'xsl' ), # ], # TEMPLATE_EXTENSION => '.xsl', # default extension when getting template name from the current action # DUMP_CONFIG => 1, # use for Debug. Will dump the final (merged) configuration for XSLT view # LibXSLT => { # XML::LibXSLT specific parameters # register_function => [ # { # uri => 'urn:catalyst', # name => 'Hello', # subref => sub { return $_[0] }, # }, # ], # }, #);
1;