[ZPT] page templates with unbalanced tags

Ian Bicking ianb at colorstudy.com
Mon May 3 17:39:31 EDT 2004


Adam wrote:
> Ok, this seems like what I need, except for one problem.  It looks like
> I can only use metal in a tag that has an open and close tag.  The first
> line in my header isn't the <html> tag, its my doctype declaration.  Can
> you use metal on its own like you can with tal (<tal:blah blah>
> </tal:blah>)?

You need to put the entire template in <tal:block> tags then.  Any tags 
that start with tal: will be removed from the final output, so your 
doctype will be end up as the first tag.

   Ian



More information about the ZPT mailing list