The UMBC Linux Users Group Mailing List

[Date Prev]
[Date Next]
[Date Index]
[Thread Prev]
[Thread Next]
[Thread Index]
Match: Format: Sort by:
Search:

Re: #include for .html pages


On Mon, Jun 25, 2001 at 11:58:02PM -0400, Gregm wrote:

> I'm accumulating a bunch of identical html for each page, so would
> like to set up a standard header and footer file, included in all
> the static pages- so I can make changes once.

The more portable way to do this is to use SSI -- server side
includes.  Something like <!--#include virtual=whatever -->.  Like C
includes, this needs to be added to each HTML file.  You can easily
write a shell script to prepend a header include and append a footer
include to any HTML file that needs one.

Some web servers have a built-in header/footer feature, which lets you
avoid manually adding a header/footer to each page.  I haven't seen
such in the default apache install, but there may be a module out
there for this, or there may be some way to do this in the default
install that I don't know of.

- Morty

***********************************************************
You are receiving this email because you are subscribed to
the list "UMBCLINUX".  To unsubscribe, send an email to
"listproc@REMOVEME.listproc.umbc.edu" with the message(not subject):
unsub UMBCLINUX