#15667: Implement template-based widget rendering
----------------------+---------------------------
 Reporter:  brutasse  |         Owner:  brutasse
   Status:  new       |     Milestone:  1.4
Component:  Forms     |       Version:
 Keywords:            |  Triage Stage:  Unreviewed
Has patch:  0         |
----------------------+---------------------------
 Following [https://groups.google.com/d/topic/django-
 developers/fMQnk2fAo_A/discussion this proposal on django-dev], this
 ticket tracks the status of replacing the widgets rendering code with a
 template-based system.

 The proposal is based on an existing implementation,
 [https://github.com/brutasse/django-floppyforms django-floppyforms]. The
 api provides several ways of extending a widget:

 * Widget.template_name: the name of the template used to render the widget
 * Widget.get_context_data(): a way to inject additional context data
 * Widget.get_context(name, value, attrs=None): this method calls
 get_context_data() and provides the basic context variables: attrs,
 hidden, name, required, type.

 I'm actively working on a patch and will attach it to the ticket as soon
 as I can so that the implementation and extension points can be discussed.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15667>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to