--- Myk Melez <myk@xxxxxxxxxxx> 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 %]
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.