Opened 10 years ago
Closed 10 years ago
#24666 closed New feature (invalid)
Ability to specify an alias for TemplateEngine in settings
Description ¶
use e.g.
Code highlighting:
default_name = tpl.get('ALIAS', tpl['BACKEND'].rsplit('.', 2)[-2])
instead
Code highlighting:
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
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
How is your proposal different from setting the NAME option?