Right, that's what my example was doing (although with includes in the wrapper for components of the wrapper itself). The problem is that my documents then become just the stuff within the wrapper and aren't complete documents, making them harder to validate. Also, it means all site contributors (and their HTML authoring tools) need to know TT at least well enough to set the page_title parameter, whereas now they just put the page title within the <title> tag and the homegrown templating system picks it up.--- Myk Melez <[EMAIL PROTECTED]> wrote:It seems like the right thing to do in TT is to define a wrapper and put only the content in the document, i.e.:Try a WRAPPER instead of two INCLUDE's:[% WRAPPER skeleton.tt page_title = "My Page" %] the content... [% END %]
But maybe all this doesn't matter. Maybe validators do well enough with non-document snippets of HTML and the drawbacks to making everyone know TT are outweighed by the benefit of doing things the TT way (or there's a better way that resolves this conflict). Thoughts?
-myk
