> I hacked on the forms thing a bit more on a 3-hour plane ride today
> and came to the same conclusion. I've attached the newest version of
> this file (gee, progressing like this is going to get unwieldy unless
> I check this into SVN), which has changed Widget.render() to take the
> name and value. I've also made some other changes, mostly in
> additional unit tests that show off some of the cool features.

For those of us not using XHTML would it be possible to add a flag to
output valid HTML?

I'm curious if something like this might be a useful way to override
the output...

>>> w = TextInput()
>>> w.template = template.Template("<input {{ attrs }}>")
>>> w.render('email', '')
u'<input type="text" name="email">'

Though this seems like overkill if you can already manipulate all the
attributes of the input tag.

-Rob


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to