GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MojoX::Renderer::Xslate(3) User Contributed Perl Documentation MojoX::Renderer::Xslate(3)

MojoX::Renderer::Xslate - Text::Xslate renderer for Mojo

    sub startup {
        ....

        # Via mojolicious plugin
        $self->plugin('xslate_renderer');

        # or manually
        use MojoX::Renderer::Xslate;
        my $xslate = MojoX::Renderer::Xslate->build(
            mojo             => $self,
            template_options => { },
        );
        $self->renderer->add_handler(tx => $xslate);
    }

The "MojoX::Renderer::Xslate" module is called by "MojoX::Renderer" for any matching template.

    $renderer = MojoX::Renderer::Xslate->build(...)

This method returns a handler for the Mojo renderer.

Supported parameters are:

mojo
"build" currently uses a "mojo" parameter pointing to the base class object ("Mojo").
template_options
A hash reference of options that are passed to Text::Xslate->new().

Text::Xslate, MojoX::Renderer

Please report any bugs or feature requests to <http://rt.cpan.org/Public/Bug/Report.html?Queue=MojoX-Renderer-Xslate>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

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

    perldoc MojoX::Renderer::Xslate

You can also look for information at:

  • GitHub Source Repository

    <http://github.com/gray/mojox-renderer-xslate>

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/MojoX-Renderer-Xslate>

  • CPAN Ratings

    <http://cpanratings.perl.org/d/MojoX-Renderer-Xslate>

  • RT: CPAN's request tracker

    <http://rt.cpan.org/Public/Dist/Display.html?Name=MojoX-Renderer-Xslate>

  • Search CPAN

    <http://search.cpan.org/dist/MojoX-Renderer-Xslate/>

Copyright (C) 2010-2018 gray <gray at cpan.org>, all rights reserved.

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

gray, <gray at cpan.org> hjansen, <hjansen at cpan.org>
2018-10-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.