Click here to get back home

HTML Template Language?

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
HTML Template Language? DougS 12-31-2005
Posted by DougS on December 31, 2005, 9:48 am
Please log in for more thread options


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.


Posted by Lars Eighner on December 31, 2005, 3:19 pm
Please log in for more thread options


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

> 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.

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
straightforward.

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
now.

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 usenet@larseighner.com http://www.larseighner.com/
Due to a mixup in Urology, orange juice will not be served this morning.

Posted by DougS on December 31, 2005, 4:33 pm
Please log in for more thread options


Thanks Darin and Lars for the quick replies!


Posted by Darin McGrew on December 31, 2005, 5:53 pm
Please log in for more thread options


> 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.

See http://www.htmlhelp.com/faq/html/design.html#include-file
--
Darin McGrew, mcgrew@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, darin@htmlhelp.com, http://www.HTMLHelp.com/

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

Similar ThreadsPosted
trouble using html tidy with template files March 4, 2006, 1:12 pm
HTML Link to an Anchor - eBay Listing Template June 30, 2005, 9:43 pm
Newsletter Template July 27, 2008, 8:30 pm
free template sites? November 15, 2004, 6:56 pm
Best way for Common Template? CSS, Frames? September 9, 2005, 5:54 am
Login to customized template June 19, 2006, 10:35 am
variable/template question August 7, 2006, 4:49 pm
how to "attach" a page to a template in dreamweaver? February 2, 2006, 5:30 am
Edit PSD Template Files? Photoshop Expertise? March 22, 2006, 12:54 am
Site Template - Any Internet Explorer XML Parser errors? April 20, 2007, 6:04 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap