The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

MojoX::Renderer::HTP - HTML::Tempate::Pro renderer for Mojo

VERSION

Version 0.032

SYNOPSIS

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 }]
   );

FUNCTIONS

build

create handler for renderer

AUTHOR

Sergey Lobin, <ifitwasi at gmail.com>

BUGS

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.

SUPPORT

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

    perldoc MojoX::Renderer::HTP

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

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.