>>>>> "AW" == Andy Wardley <[EMAIL PROTECTED]> writes:

AW> On Nov 3,  9:52am, Ken Y. Clark wrote:
>> btw, i'd really recommend you look into using Template Toolkit.

AW> Indeed.  One of the nice things about TT (in the author's humble opinion)
AW> is that you can use the same presentation templates to render static HTML
AW> as for dynamic HTML.


I've been trying to wrap my head around TT the last few days.  What I
would like to do is make each document just plain HTML content, and
have one template that my server applies to the docs.  That is, the
template would be something like

<head>
 <title>My Site</title>
</head>
<body>
<tr>
 <td>[% stick in body of article here "document.main" %]</td>
 <td>[% stick in related info here "document.sidebar" if it exists %]</td>
</tr>
</body>

That is, I have exactly one template that I apply to each document.
Right now I do that using Sandwich and some pre-processing, but I'd
much rather let a real template system do it so I can put parts in
various places.

Is TT the something that will let me do this without too much
headache?

Reply via email to