Re: Requirements for updated site

From: Jeroen Ruigrok/asmodai <asmodai(at)wxs(dot)nl>
To: "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Cc: Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, Alexey Borzov <borz_off(at)cs(dot)msu(dot)su>, pgsql-www(at)postgresql(dot)org
Subject: Re: Requirements for updated site
Date: 2004-01-16 07:31:22
Message-ID: 20040116073122.GD776@nexus.ninth-circle.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

-On [20040116 06:22], Marc G. Fournier (scrappy(at)postgresql(dot)org) wrote:
>Okay, I'm a bit curious here, and hope that Alexey can explain it ... what
>exactly is a template engine, and how does it work? Alexey, just because
>you are familiar with one doesn't help unless there are others as familiar
>... and there needs to be a *really* clear (and well justified) reason for
>using one so that others will want to learn how to ... so if you can
>explain, and maybe provide an example? That may help ...

See for example: www.template-toolkit.org

You create pseudo-HTML pages which have specialised code/markup which
gets replaced on the fly.

E.g. each page has:

[ %HEADER% ]

Which gets replaced by the file header.html.tmpl (assuming you defined
HEADER to be that file somewhere).

Just an example I created, might not match what template-toolkit does.

--
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / kita no mono
PGP fingerprint: 2D92 980E 45FE 2C28 9DB7 9D88 97E6 839B 2EAC 625B
http://www.tendra.org/ | http://diary.in-nomine.org/
Don't try to find the Answer where there ain't no Question here...

In response to

Browse pgsql-www by date

  From Date Subject
Next Message Dave Page 2004-01-16 08:18:39 Re: Todo for 'portal', programmers perspective
Previous Message Marc G. Fournier 2004-01-16 05:59:53 Re: Requirements for updated site