public inbox for [email protected]  
help / color / mirror / Atom feed
From: Jeroen Ruigrok/asmodai <[email protected]>
To: Marc G. Fournier <[email protected]>
Cc: Dave Page <[email protected]>
Cc: Alexey Borzov <[email protected]>
Cc: [email protected]
Subject: Re: Requirements for updated site
Date: Fri, 16 Jan 2004 08:31:22 +0100
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>

-On [20040116 06:22], Marc G. Fournier ([email protected]) 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...




view thread (32+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Requirements for updated site
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox