[ZPT] DOCTYPES in Page Templates

Dieter Maurer dieter at handshake.de
Tue May 11 13:48:26 EDT 2004


Alexander Limi wrote at 2004-5-11 04:25 +0200:
> ...
><metal:page define-macro="master"><metal:doctype  
>define-slot="doctype"><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0  
>Transitional//EN"  
>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></metal:doctype>
>
>(notice the total lack of spaces to conform with the spec, which states  
>that the doctype has to be on the first line, without leading spaces)
>
>This doesn't exactly work wonders for readability,

You can get a bit more readability with:

<metal:page define-macro="master"
><metal:doctype ...
><!DOCTYPES ...>...

-- 
Dieter



More information about the ZPT mailing list