Catalyst::Helper::View::XSLT - Helper for XSLT Views


Catalyst-View-XSLT documentation Contained in the Catalyst-View-XSLT distribution.

Index


Code Index:

NAME

Top

Catalyst::Helper::View::XSLT - Helper for XSLT Views

SYNOPSIS

Top

    script/create.pl view XSLT XSLT

DESCRIPTION

Top

Helper for XSLT Views.

METHODS

Top

mk_compclass

SEE ALSO

Top

Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper

AUTHORS

Top

Martin Grigorov, <mcgregory {at} e-card {dot} bg>

Simon Bertrang, <simon.bertrang@puzzworks.com>

LICENSE

Top

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

NAME

Top

[% class %] - XSLT View Component

SYNOPSIS

Top

[% app %]

DESCRIPTION

Top

Catalyst XSLT View.

AUTHOR

Top

[% author %]

LICENSE

Top

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;