#27359: Make it possible to specify a default template engine
-------------------------------------+-------------------------------------
     Reporter:  Artur Barseghyan     |                    Owner:  Carlton
                                     |  Gibson
         Type:  New feature          |                   Status:  assigned
    Component:  Template system      |                  Version:  1.8
     Severity:  Normal               |               Resolution:
     Keywords:  template engines     |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Carlton Gibson):

 * has_patch:  0 => 1


Comment:

 [[https://github.com/django/django/pull/8000 PR]

     Adds a failing test case for the issue and a naive fix.

     Here we just take the first DTL engine returned. Users should employ
 collections.OrderedDict if they need to control this prior to Python 3.6.
     Need to add a note to the docs to that effect if the patch is
 acceptable.

     Alternative proposals:

     Have a naming convention. e.g. pick engine named 'default'
     Add a specific OPTION to the config dict.
     This is something of an edge case, and so, (IMO) 'pick the first'
 should be sufficient.

--
Ticket URL: <https://code.djangoproject.com/ticket/27359#comment:13>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/073.96da5ef16986b9d2b648903ee31641ca%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to