[Scottish] HTML templating software?

David Marsh's list-reading hat scottish at mailman.lug.org.uk
Tue Dec 3 13:43:00 2002


On Tue, 3 Dec 2002 09:59:26 +0000
Mike Quin <m.r.quin@stir.ac.uk> wrote:

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

Indeed, but SSIs again involve the document being assembled on the fly
which prevents caching (I believe there are ways to help mitigate this
involving XBitHack, but I don't think I have that level of control on my
host). Certainly SSIs are useful for including genuinely dynamic content
(eg banner ads, random quotes, etc).


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

True enough, it probably would be reasonably trivial.
Not something I have time to look into right now, though, unfortunately.
Unless somebody else has already done something similar and would like
to share...?

Thanks,


David.


-- 
David Marsh, <email in header is valid>  | http://web.viewport.co.uk/