-
-
07 Oct 2018 18:51:38 UTC
- Distribution: MojoX-Renderer-Xslate
- Module version: 0.14
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (1)
- Testers (476 / 0 / 0)
- Kwalitee
Bus factor: 1- 90.24% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (7.76KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Mojolicious
- Text::Xslate
- Try::Tiny
- parent
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
MojoX::Renderer::Xslate - Text::Xslate renderer for Mojo
SYNOPSIS
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); }
DESCRIPTION
The
MojoX::Renderer::Xslate
module is called byMojoX::Renderer
for any matching template.METHODS
build
$renderer = MojoX::Renderer::Xslate->build(...)
This method returns a handler for the Mojo renderer.
Supported parameters are:
- mojo
-
build
currently uses amojo
parameter pointing to the base class object (Mojo
). - template_options
-
A hash reference of options that are passed to Text::Xslate->new().
SEE ALSO
REQUESTS AND BUGS
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.
SUPPORT
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
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
http://rt.cpan.org/Public/Dist/Display.html?Name=MojoX-Renderer-Xslate
Search CPAN
COPYRIGHT AND LICENSE
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.
AUTHOR
gray, <gray at cpan.org> hjansen, <hjansen at cpan.org>
Module Install Instructions
To install MojoX::Renderer::Xslate, copy and paste the appropriate command in to your terminal.
cpanm MojoX::Renderer::Xslate
perl -MCPAN -e shell install MojoX::Renderer::Xslate
For more information on module installation, please visit the detailed CPAN module installation guide.