[Twisted-web] validating nevow disk templates
Jean-Paul Calderone
exarkun at divmod.com
Fri Feb 23 13:58:02 CST 2007
On Fri, 23 Feb 2007 19:50:09 +0000, Phil Mayers <p.mayers at imperial.ac.uk> wrote:
>How do people do this?
>
>When I attempt to validate pages using the FireFox / Web Developer
>validator, I get a lot of complaints about tags that should be self-closed
>e.g.:
>
><input type="text">
> <nevow:attr name="name"><nevow:slot name="name"/></nevow:attr>
></input>
>
>...generates HTML like this:
>
><input type="text" name="theName">
>
></input>
>
>...which is not only ugly, it doesn't validate.
>
>I like stan, but I dislike the fact that it clutters up .py files and also
>that it doesn't reload like the disk templates. OTOH I deeply dislike the
>nevow:attr / nevow:slot pseudo-tags in the disk templates.
>
>Thoughts?
>
<input type="text"><nevow:attr ...></input>
will generate valid xhtml. I'm not sure I have any suggestions other than
to use input which will generate valid output.
If you have any suggestions for improving the usability of templates, I'd be
more than happy to hear them.
Jean-Paul
More information about the Twisted-web
mailing list