Template Toolkit and databases

Russell, Glenn Glenn.Russell at spirent.com
Mon Jul 23 12:31:15 CDT 2001


Hey Andrew,

Flexible and futureproof?. XML and XSL will give you that, as well as
seperation of content and presentation, thus your storage options greatly
increase

Glenn.

-----Original Message-----
From: Andrew McFarland [mailto:andrew at mcfarland.co.uk]
Sent: 23 July 2001 18:03
To: belfast-pm at pm.org
Subject: Template Toolkit and databases


I'm about to build a database to work in conjunction with Template Toolkit 
to output a set of static HTML pages. All the pages will have a standard 
header, some content, and then a standard footer.

I'm unsure of the best way of putting the content into the database. At the 
moment it could conceivably be any HTML that can legally go in the body of 
an HTML 4.01 strict document. Should I just put all the content - tags and 
all - into one field in the database?

I want to have the content completely separate from the layout, but I also 
want to be as flexible and as future proof as possible. Any thoughts anyone?

Andrew

-- 
AA McFarland http://www.mcfarland.co.uk/andrew/
The LORD is my shepherd, I shall not be in want
Psalm 23:1 



More information about the Belfast-pm mailing list