[Catalyst] Catalyst without template

Dmitri Pissarenko dmitri.pissarenko at gmail.com
Thu May 17 15:46:02 GMT 2007


Hello!

Imagine I have following controller function:

sub buttonPressed : Local {
    my ( $self, $c ) = @_;

    my $name     = $c->request->params->{name};

    $c->res->write("Hello " . $name . ", welcome to the world of Dojo!\n");
}

I want that the page http://localhost:300/buttonPressed ONLY contains
text "Hello $name, welcome to the world of Dojo!" and nothing more.

How can I tell Catalyst that it shouldn't use any template for this
particular page?

TIA

Dmitri Pissarenko



More information about the Catalyst mailing list