[Scottish] HTML templating software?

Mike Quin scottish at mailman.lug.org.uk
Tue Dec 3 10:01:00 2002


On Mon, Dec 02, 2002 at 10:53:13PM +0000 or thereabouts, David Marsh's
list-reading hat wrote:

> Most of the pages on my site will be static, so I'm looking for a tool
> that I use offline on my local machine to make each page as and when
> needed, and then upload changes to the server, rather than something
> which runs (and stores all my data) server-side.

A simple approach to that is to use Apache's server-side-include
functionality, which allows you to include files within a document,
so you could have the top and bottom of each page defined in a
template file, and have your individual documents just contain the
content, with directives to include the header and footer files.

If you are using a web host which does not support SSI, it would be a
trivial excersise to write some shell scripts which could stitch
together your content files with the header and footer files before
uploading.


-- 
Mike Quin,  Unix Sysadmin,  Information Services,  University of Stirling
Email: m.r.quin@stir.ac.uk  Voice: +44-1786-467273   Fax: +44-1786-466882
Post: 2B24, Cottrell Building,  University of Stirling,  STIRLING FK9 4LA
-- 
The University of Stirling is a university established in Scotland by
charter at Stirling, FK9 4LA.  Privileged/Confidential Information may
be contained in this message.  If you are not the addressee indicated
in this message (or responsible for delivery of the message to such
person), you may not disclose, copy or deliver this message to anyone
and any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful.  In such case, you should destroy this
message and kindly notify the sender by reply email.  Please advise
immediately if you or your employer do not consent to Internet email
for messages of this kind.  Opinions, conclusions and other
information in this message that do not relate to the official
business of the University of Stirling shall be understood as neither
given nor endorsed by it.