> It's the same story with any templating system: you can reduce
> duplication, but then your source files are no longer just HTML.  

Hmm, there are systems which keep template files as HTML, like Zope
Page Templates (there is sth based on this idea for perl too). The
main idea is to specify templating instructions using HTML tags
attributes like below:

  <h2 tal:replace='myvariable'>This title will be replaced</h2>

Using those techniques the templates can be kept and viewed as valid
HTML. Of course there is price - complicated rules are hard. But for
the simple replacements like common header and footer this idea is
sound.

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to