in reply to Best way of storing semi-static data
You can build a semi-static site quite easily. Use HTML::Template (or other templating module) to merge semi-static db data into static .html files. Psuedo code below: (note this does one file, but you could easily do many with this same script )
use HTML::Template my %vars = getStuffFromDB(); # open the html template my $t = HTML::Template->new(filename => 'ffff.tmpl'); $t->param( foo => $var{'foo'}; # open $filehandle to .html file .. snip .. # output print $fh $t->output;
-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Best way of storing semi-static data
by kiat (Vicar) on Dec 23, 2004 at 14:08 UTC | |
by freddo411 (Chaplain) on Dec 23, 2004 at 21:01 UTC | |
by kiat (Vicar) on Dec 24, 2004 at 05:12 UTC |