#15667: Implement template-based widget rendering
--------------------------------+------------------------------------
     Reporter:  brutasse        |                    Owner:  brutasse
         Type:  New feature     |                   Status:  new
    Component:  Forms           |                  Version:
     Severity:  Normal          |               Resolution:
     Keywords:  form-rendering  |             Triage Stage:  Accepted
    Has patch:  1               |      Needs documentation:  1
  Needs tests:  0               |  Patch needs improvement:  1
Easy pickings:  0               |                    UI/UX:  0
--------------------------------+------------------------------------

Comment (by carljm):

 Replying to [comment:35 akaariai]:
 > My opinion: if we want this, lets implement the default rendering in
 Python. We could also provide default templates and compare output in
 testing so that they produce the same result.
 >
 > This isn't beautiful. But this way those who need absolute speed can get
 it. In most of cases ultimate speed isn't a requirement.
 >
 > Using template based forms does make so much sense that in my opinion
 the code duplication is worth it.

 I agree that using template-based forms makes so much sense that it is
 worth taking the performance hit by default, but I have a different
 proposal for what those people should do who need "absolute speed" in
 template rendering: use Jinja2 instead of DTL. Several adapters are
 available that make Jinja2 work as a Django template loader (e.g.
 [https://github.com/jbalogh/jingo jingo]), which means that it can be a
 drop-in replacement for DTL (apart from needing to update template syntax,
 of course). I think it's easy enough to switch to Jinja2 if you really
 need the speed that it is not worth us maintaining two separate widget
 rendering systems in Django.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/15667#comment:39>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.4bfc067ea6455c681c8a576b34ed8630%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to