> > Just wondering what the best templating system is to use
> > and/or learn.
> 
> I'm just wondering why no one recommended Embperl. Like Mason, it's more
> than a templating system, but I find it's inheritance features great.

I too have found template inheritance to be pretty important - especially
the ability to override enclosing templates.

At Turbo10 we went for a strict 'no functional elements' in the template
approach.

But how do you do things like <loops> </loops> for displaying rows in a
report?

The content management system models a HTML page (e.g., Object -> Master
Template -> Page -> Form -> Subform).

A presentation script is responsible for inserting the rows into the page
and master template. Attributes (e.g., bgcolor) of an enclosing object
(e.g., page) are inherited (or overridden) by an enclosed object (e.g.,
form). 

Each object is stored in an XMLish file, slurped into a hash, and the keys
are merged.

Typically a DBI row hash is also merged as there is a 1-1 correspondence 
between database column names and form attributes.

I think the question of templating solution depends on the plan for the
content management system ...



NIge


-- 
Nigel Hamilton
Turbo10 Metasearch Engine

email:  [EMAIL PROTECTED]
tel:    +44 (0) 207 987 5460
fax:    +44 (0) 207 987 5468
________________________________________________________________________________
http://turbo10.com              Search Deeper. Browse Faster.

Reply via email to