Opened 5 years ago
Closed 5 years ago
#31519 closed New feature (wontfix)
Unclosed tags don't cause syntax errors in templates.
Reported by: | Bithive | Owned by: | nobody |
---|---|---|---|
Component: | Template system | Version: | 3.0 |
Severity: | Normal | Keywords: | Tags |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Unclosed Tags e.g. "{% extends '_base" don't trow syntax errors.
These problems are hard to detect via tests maybe Django should throw a syntax error
Change History (1)
comment:1 by , 5 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Summary: | Unclosed tags don't cause Syntax errors in Templates → Unclosed tags don't cause syntax errors in templates. |
Type: | Uncategorized → New feature |
Note:
See TracTickets
for help on using tickets.
Thanks for this ticket, however DTL parses only properly closed tags: "Django's template parser looks for the first occurrence of
%}
after a{%
..." and I think we shouldn't change this.