HTML Template Language?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I would like to create HTML pages using embedded "markers" which
represent HTML code that is common to all of my pages. I need a utility
which will replace these "markers" with the associated code.  This
would be a great way to update banners and navigation bars without
using frames.

Thanks in advance for any ideas.

Re: HTML Template Language?

In our last episode,
the lovely and talented DougS
broadcast on comp.infosystems.www.authoring.html:

Quoted text here. Click to load it

There are several ways to do this.  If you have boilerplate that
is exactly the same on many (or all) pages of a fairly simple
site, server-side includes (SSI).  Some servers do not support
or permit server-side includes, so you have to ask your web host
if server-side includes are supported.  If you are already using
frames to do this, the conversion should be fairly

For a more complex site or more sophisticate operations (such as
graying out nav buttons for the current page, etc.) you need a
preprocessor.  Right now, it looks like PHP is the way to go.
You can use PHP offline (called PHP CLI - command-line
interface) to generate pages and then upload the results to your
server.  Since what ends up on your server is just html, no
server support is required.  But as no doubt you have noticed,
(from pages with the .php extension you see on the web) PHP
can be used to generate page dynamically - so you have an upward
path for now - and php is so popular, you are unlikely to be
deadend any time soon.  PHP is free, but it is huge if you
install all the extensions.  You want to start with a basic,
minimal installation, which will do far more than you want to do

HTML is, after all, just plain text, and there are numerous
other preprocessors which can do about the same thing (insert
particular bits of text for symbols in a text).  You may be able
to do what you want with a simple macro in your text editor or
word processor.  You can do it with the C preprocessor, but the
documentation is heavy on C examples and if you already knew the
C preprocessor, you would already be using it to do what you
want.  Whatever preprocessor you use, you might benefit from a
MAKE utility to run all of your pages through it.  Again the
documentation for MAKE utilities is heavy on programming
examples and shortcuts designed for programming.

Lars Eighner /
   Due to a mixup in Urology, orange juice will not be served this morning.

Re: HTML Template Language?

Thanks Darin and Lars for the quick replies!

Re: HTML Template Language?

Quoted text here. Click to load it

Darin McGrew,, /
    Web Design Group,, /

    "Warning: Dates in the calendar are closer than they appear."

Site Timeline