[Pugged] template systems?

Claus ciapug@ciapug.org
Mon, 26 Aug 2002 15:17:21 -0500


I don't use a pre-made template system instead I created my own little 
thing because of some requirements that I put upon myself that no template 
system meet:
1. resulting webpage has to look like a unique static web site so any 
search engine can store them and link to them directly
2. data files themselves are html documents that can be viewed 
independently without the need of the template and contain the page title, 
description, and key-words
3. template has to support an navigation bar
4. no frames
5. simple for dual language support
6. content will contain php code that has to work with and without the template

Basically all incoming traffic is redirected to the template file.  The 
original directory and file is passed via a variable to the template.  The 
template uses an include to include the content and a file with an array 
for the index.  Unfortunately the index array needs to be kept up to date 
manually.

The file name and description of the weekly pictures are kept in a database 
and thus the index and body of the pictures are created dynamically.

It's difficult to describe all this without showing the code.  You can see 
the final result at http://www.niesens.com .

   Claus