[NTLUG:Discuss] what is the best Linux web page developing tool?

A.L.Lambert max at xjack.org
Mon Mar 19 15:49:42 CST 2001


> Thanks a lot for your input, my projects are a little too big to do
> w/just hand coding.  I'll check them out. -Micky

	This is what I use server-side-includes (SSI) for.  I create my
template.html file which contains all the layout information, and then I
just edit my content in a text editor.  The layout might look something
like this:

template.shtml:

---cut---

<HTML><HEAD><TITLE></TITLE></HEAD><BODY bgcolor=white>

<!-- Insert whatever outlandish HTML stuff I've dreamed up here -->

<!--#include virtual="@CONTENT@">

<!-- I'll explain why that @CONTENT@ instead of a filename in a bit -->

<!-- close off any tables and other junk I did in the header -->

<!-- copyright notices and other junk here -->

</BODY></HTML>

---cut---

	Then I have a VERY simple shell script like this:


---cut---

gensite.sh:

#!/bin/sh

for i in index whatsnew about this that theother etc ; do
	cat template.shtml |\
        sed s/"@CONTENT@"/"$i.html"/g > ~/public_html/$i.shtml
done

---cut---


	I have a subdirectory called /text/ (although you could call it
anything you wanted), in which I have the actual content of the individual
pages (generally just plain old text separated by <P> tags).  This makes
it really easy to handle by hand, since regardless of the tool in
question, I still have to type up all the text that is the site content.

	But, since I'm using a template file for the site
layout/design/etc., I can replace the template.shtml file with something
completely new and different, run the "gensite.sh" script, and instantly
re-do the entire site.

	Anyway, just some notes from a guy who is religious about
hand-coding his HTML, but who hates having to re-do hundreds of pages for
a big site when it comes time for the inevitable changes to the
layout/design. :)

	Cheers!

-- 
A.L.Lambert
------------------------------------------------------------------------
The problems that exist in the world today cannot be solved by the level
of thinking that created them...
	-Einstein
------------------------------------------------------------------------




More information about the Discuss mailing list