[Catalyst] CGI.pm and Catalyst?

Kieren Diment diment at gmail.com
Fri Mar 7 08:45:45 GMT 2008


On 7 Mar 2008, at 19:23, Martin Ellison wrote:

> Is there anything attached to Catalyst similar to the CGI.pm  
> module? That
> is, creating the HTML by a series of procedure calls rather than by
> instantiating a template?
>
> Or is there some way to link up the existing CGI module?
> $c->response->body(ul(li(q{hello}),
> li(q{world})))) ?
>
> Or is it not a good idea?
>
> I couldn't find anything from a search, so excuse me please if this  
> has been
> covered before.
>

Don't use cgi.pm with catalyst, it's a bad idea which has bitten me  
in the arse for reasons I forget.  Perhaps you want html::tiny,  
although I'd really recommend that you use a proper template engine,  
otherwise your code will grow into a horrible monster before you know  
it.



More information about the Catalyst mailing list