[Catalyst] Re: Catalyst without template
A. Pagaltzis
pagaltzis at gmx.de
Thu May 17 16:51:50 GMT 2007
* Dmitri Pissarenko <dmitri.pissarenko at gmail.com> [2007-05-17 17:00]:
> sub buttonPressed : Local {
> my ( $self, $c ) = @_;
>
> my $name = $c->request->params->{name};
>
> $c->res->write("Hello " . $name . ", welcome to the world of Dojo!\n");
> }
Don’t do that, it leads to spaghetti. Write your own View class
and generate the output from there.
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
More information about the Catalyst
mailing list