SmileyChris pointed me here. I wrote up a rant today about newforms and what I've done to keep it easy (quick) for building forms. http://www.davidcramer.net/code/111/making-django-newforms-useful.html
Maybe some of those ideas will be of help. Keep in mind, I use Jinja, so it's got a lot more capability (as far as I can remember). On Mar 23, 12:49 pm, "Rajeev J Sebastian" <[EMAIL PROTECTED]> wrote: > On Sun, Mar 23, 2008 at 6:01 AM, Simon Willison <[EMAIL PROTECTED]> wrote: > > > On Mar 22, 10:09 pm, Mike Axiak <[EMAIL PROTECTED]> wrote: > > > On Mar 22, 11:21 am, "Will Hardy" <[EMAIL PROTECTED]> wrote:> {{ > > field|class:"special"|as_li }} > > > > [...] > > > > > I've been thinking about having a {% doctype %} tag. > > > > I could be uninformed, but as of now template filters cannot access > > > the context, and so you can't use filter while expecting doctype to do > > > the right thing. I think this was the main motivation behind Simon > > > suggesting tags. > > > It was - but the ability to customise attributes turned out to be a > > side effect that was potentially even more useful. > > Moreover, the use of filters means that the form can now provide a > better interface for us to write our own fitlers, or tags, etc. Sort > of like what they say about UNIX tools ... small tools combined to > make bigger ones. > > Regards > Rajeev J Sebastian --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---