Opened 11 years ago
Closed 11 years ago
#24666 closed New feature (invalid)
Ability to specify an alias for TemplateEngine in settings
| Reported by: | Vitaliy Yelnik | Owned by: | nobody |
|---|---|---|---|
| Component: | Template system | Version: | 1.8 |
| Severity: | Normal | Keywords: | Template |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
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 , 11 years ago
comment:2 by , 11 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?