Galera estou tentando fazer um aplicação com o Catalyst<div>e na View usar o modulo Zoom, porem estou sentindo um</div><div>pouco de dificuldade, por isso queria que vocês me ajudassem</div><div>me explicando um pouco melhor o que acontece nesse codigo</div>
<div>abaixo que encontrei no cpan.</div><div>Desde já agradeço a quem puder ajudar.</div><div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: medium; "><pre style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(238, 238, 238); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(136, 136, 136); border-right-color: rgb(136, 136, 136); border-bottom-color: rgb(136, 136, 136); border-left-color: rgb(136, 136, 136); padding-top: 1em; padding-right: 1em; padding-bottom: 1em; padding-left: 1em; white-space: pre; ">
<span class="Apple-style-span" style="color: black; ">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' ); </span><font class="Apple-style-span" color="#FF0000">O que esta acontecendo aqui???</font>
}
package MyApp::View::HTML::Wobble;
use Moose;
sub dance {
my ($self, $stash) = @_;
$_->select('#shake')->replace_content($stash->{shaking}); <font class="Apple-style-span" color="#FF0000">O que esta acontecendo aqui???</font><br>
}
#root/wobble/dance
<p>Shake those <span id="shake" />!</p> <font class="Apple-style-span" color="#FF0000">Qual a diferença desse para...</font>
/wobble/dance => "<p>Shake those <span id="shake">hips</span>!</p>"; <font class="Apple-style-span" color="#FF0000">...esse</font></pre></span></div>