Sergey Lobin > MojoX-Renderer-HTP-0.032 > MojoX::Renderer::HTP

Download:
MojoX-Renderer-HTP-0.032.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.032   Source  

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.

syntax highlighting: