Template Toolkit and databases

Andrew McFarland andrew at mcfarland.co.uk
Mon Jul 23 12:03:07 CDT 2001


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