Opened 10 years ago

Closed 10 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 Tim Graham, 10 years ago

How is your proposal different from setting the NAME option?

comment:2 by Vitaliy Yelnik, 10 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top