On 2004-10-07, Joel Gwynn <[EMAIL PROTECTED]> wrote:
> I'm working on a web site that will be a combination of static pages and 
> application pages, and I'd like to use cgiapp to build the static 
> pages.  I've been browsing the archives, and can't find any real answers.
>
> Should I be considering a separate utility or CMS based on HTML::Template?

When I wrote Cascade:
http://www.summersault.com/software/cascade/

I wanted many run modes to work as dynamic pages or static pages.
Depending on which mode the system was working in, generated links might
look like

/Topics/Skateboarding/index.html

or

/cgi-bin/sk8.cgi/category_page?category_id=23


CGI::Application works well in this problem space because it keeps the
page content separate from the headers that need to be sent from the
browser. 

The basic of printing a static page from CGI::App is easy:

sub write_static_pages {
        my $self = shift;

        use File::Slurp;
        write_file('my_file.html',$self->my_runmode);

        # ...

}


        Mark


-- 
http://mark.stosberg.com/ 


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[EMAIL PROTECTED]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to