NAME

Catalyst::View::HTML::Zoom - Catalyst view to HTML::Zoom

VERSION

version 0.002001

SYNOPSIS

package MyApp::View::HTML;
use Moose;
extends 'Catalyst::View::HTML::Zoom';

package MyApp::Controller::Wobble;
use Moose; BEGIN { extends 'Catalyst::Controller' }
sub dance : Local {
    my ($self, $c) = @_;
    $c->stash( shaking => 'hips' );
}

package MyApp::View::HTML::Wobble;
use Moose;
sub dance {
    my ($self, $stash) = @_;
    $_->select('#shake')->replace_content($stash->{shaking});
}

#root/wobble/dance
<p>Shake those <span id="shake" />!</p>

/wobble/dance => "<p>Shake those <span id="shake">hips</span>!</p>";

METHODS

process

Renders the template specified in $c-stash->{template}> or $c-namespace/$c->action> (the private name of the matched action). Calls render to perform actual rendering.

Output is stored in $c->response->body.

render($c, $template)

Renders the given template and returns output, or a Template::Exception object upon error.

WARNING: VOLATILE!

This is the first version of a Catalyst view to HTML::Zoom - and we might have got it wrong. Please be aware that this is still in early stages, and the API is not at all stable. You have been warned (but encouraged to break it and submit bug reports and patches :).

THANKS

Thanks to Thomas Doran for the initial starting point

AUTHOR

Oliver Charles <oliver.g.charles@googlemail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Oliver Charles.

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