X-Original-To: pgsql-www-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id B17A5D1B44A; Fri, 16 Jan 2004 07:33:29 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 75469-01; Fri, 16 Jan 2004 03:32:59 -0400 (AST) Received: from 213-84-207-11.adsl.xs4all.nl (nexus.xs4all.nl [213.84.207.11]) by svr1.postgresql.org (Postfix) with ESMTP id 5ADBCD1DB8B; Fri, 16 Jan 2004 03:32:57 -0400 (AST) Received: by 213-84-207-11.adsl.xs4all.nl (Postfix, from userid 1000) id 31ED31C1; Fri, 16 Jan 2004 08:31:22 +0100 (CET) Date: Fri, 16 Jan 2004 08:31:22 +0100 From: Jeroen Ruigrok/asmodai To: "Marc G. Fournier" Cc: Dave Page , Alexey Borzov , pgsql-www@postgresql.org Subject: Re: Requirements for updated site Message-ID: <20040116073122.GD776@nexus.ninth-circle.org> References: <03AF4E498C591348A42FC93DEA9661B872047C@mail.vale-housing.co.uk> <20040116011025.M45512@ganymede.hub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040116011025.M45512@ganymede.hub.org> Organisation: Ninth Circle Enterprises User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/128 X-Sequence-Number: 3367 -On [20040116 06:22], Marc G. Fournier (scrappy@postgresql.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 / 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...