NAME

MojoX::Renderer::XSLT - The great new MojoX::Renderer::XSLT!

VERSION

Version 0.01

SYNOPSIS

This module enables a Mojo / Mojolicious app to render output using XSLT stylesheets.

use MojoX::Renderer::XSLT;

sub startup {
    my $self = shift;

    $self->types->type(xsl => 'text/html');

    my $renderer = MojoX::Renderer::XSLT->build();

    $self->renderer->add_handler(xsl => $renderer);
    $self->renderer->default_handler('xsl');

    # Routes
    my $r = $self->routes;

    ...
}

FUNCTIONS

_create_xslt

Used internally only to instantiate a wrapper class which handles the XSLT parsing and transform.

build

This method is used to build an anonymous closure function which can be added as a handler for rendering output.

AUTHOR

Bob Faist, <bfaist at cpan.org>

BUGS

Please report any bugs or feature requests to bug-mojox-renderer-xslt at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MojoX-Renderer-XSLT. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc MojoX::Renderer::XSLT

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2010 Bob Faist, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.