Opened 8 years ago

Closed 8 years ago

#27703 closed New feature (needsinfo)

[Feature request] Template language type annotations

Reported by: a1fred Owned by: nobody
Component: Template system Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by a1fred)

Hi guys!

Please add some tag for annotate context variable type in templates.

Something like

  {{ var request 'django.http.HttpResponse' }}

Why?
Now we have PEP 484 and awesome editors support. This feature help implement similar in templates.

Change History (2)

comment:1 by a1fred, 8 years ago

Description: modified (diff)

comment:2 by Tim Graham, 8 years ago

Easy pickings: unset
Resolution: needsinfo
Status: newclosed

Does it require changes in Django core? Maybe you could implement a proof of concept and share it with the DevelopersMailingList to see if there's consensus to include it in Django itself. Do other template engines offer similar functionality?

I'm closing the ticket as "needsinfo" for now since there aren't yet enough details to accept or reject the ticket. We can reopen it if mailing list consensus yields otherwise.

Note: See TracTickets for help on using tickets.
Back to Top