perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Peters <mpet...@plusthree.com>
Subject Re: problem with CSS in a dynamic document
Date Fri, 25 Sep 2009 13:14:23 GMT
On 09/25/2009 08:17 AM, Chuck Crisler wrote:

> # output a document
> print $query->header();
> print $query->start_html(-title=>"Howdy",
>                           -style=>{-src=>'./dynamic.css'});
> print $query->h1('Form Data');

Also, not to confuse you too much, but most people don't use CGI.pm's 
HTML generation features any more. Most of us have moved on to using 
HTML templates which makes it even easier to separate things out. And 
it's more like editing a normal HTML file which is what most designers 
are familiar with.

You should check out Template Toolkit 
(http://search.cpan.org/perldoc?Template) or HTML::Template 
(http://search.cpan.org/perldoc?HTML::Template).

-- 
Michael Peters
Plus Three, LP

Mime
View raw message