MojoX::Renderer::HTP - HTML::Tempate::Pro renderer for Mojo
Version 0.032
Add the handler:
use MojoX::Renderer::HTP; sub startup { ... my $pro = MojoX::Renderer::HTP->build( mojo => $self, template_options => { path => [ $self->home->rel_dir('templates') ], } ); $self->renderer->add_handler( pro => $pro ); $self->renderer->default_handler('pro'); }
Then in controller:
$self->render( message => 'test', list => [{id => 1}, { id=>2 }] );
create handler for renderer
Sergey Lobin, <ifitwasi at gmail.com>
<ifitwasi at gmail.com>
Please report any bugs or feature requests to bug-mojox-renderer-htp at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MojoX-Renderer-HTP. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-mojox-renderer-htp at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc MojoX::Renderer::HTP
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=MojoX-Renderer-HTP
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/MojoX-Renderer-HTP
CPAN Ratings
http://cpanratings.perl.org/d/MojoX-Renderer-HTP
Search CPAN
http://search.cpan.org/dist/MojoX-Renderer-HTP/
Copyright 2009 Sergey Lobin, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install MojoX::Renderer::HTP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MojoX::Renderer::HTP
CPAN shell
perl -MCPAN -e shell install MojoX::Renderer::HTP
For more information on module installation, please visit the detailed CPAN module installation guide.