Website layout method

Wesley Moxam wmoxam at klickit.com
Wed Feb 4 15:40:42 PST 2004


Dylan Reinhold wrote:

Wesley Moxam wrote:

Justin C. Sherrill wrote:

Something that I thought of while talking with Dylan Reinhold:  The
DragonFly site is somewhat overengineered at this point.  The pages are
created dynamically, but the only direct benefit now is highlighting 
the
current page. Eventually  there will be more pages than can be 
displayed in a side menu,
so unless there's an upcoming need for program output on every page, 
it may
be better to use apache server side includes instead and stick to 
CGI when
the page demands it.  Opinions?  Matt, would you be willing to turn on
server side includes?

 

Since the pages are static, why not write a little script to grab the 
cgi output for each page, translate the links from pagename.cgi to 
pagename.html then write it to a .html file ....it would take about 
two minutes to do and it wouldn't require any additional apache 
features to be turned on ...

-- Wes

Yes that would work, but we want to keep the left hand menu in it's 
own. so when an item is added or removed you don't have to edit all 
the web pages.
Or are you saying to keep the *.cgi pages edit them and recreate the 
site after changes are made?

Dylan
Yeah, just regenerate the site when a change is made. I'm assuming that 
you currently have the menu in one file, and the content in another, and 
the script just changes the class of one of the menu items and joins it 
with the content and spits out a page. It would be fairly simple to 
write a single script that would 'publish' static html files.

Or you could just keep cgi pages, and edit them as you suggested ...

-- Wes







More information about the Kernel mailing list