#24666: Ability to specify an alias for TemplateEngine in settings
---------------------------------+----------------------
     Reporter:  kwist            |      Owner:  nobody
         Type:  New feature      |     Status:  new
    Component:  Template system  |    Version:  1.8
     Severity:  Normal           |   Keywords:  Template
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+----------------------
 use e.g.
 {{{
 #!div style="font-size: 80%"
 Code highlighting:
   {{{#!python
 default_name = tpl.get('ALIAS', tpl['BACKEND'].rsplit('.', 2)[-2])
   }}}
 }}}

 instead
 {{{
 #!div style="font-size: 80%"
 Code highlighting:
   {{{#!python
 default_name = tpl['BACKEND'].rsplit('.', 2)[-2]
   }}}
 }}}

 I have a backend "service.core.jinja2.engine.Jinja2" and current code
 returns "'''engine'''" as default_name for this name

--
Ticket URL: <https://code.djangoproject.com/ticket/24666>
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/048.611af1d65863dfe1ae2b7baede80b90b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to