directly handle white space and support multiline tags

This commit is contained in:
danhanson committed 2026-09-06 15:56:24 -05:00
1 parent 25c4be568f
commit e357dc17ad
8 files changed
+41013 -13298

No files matched your search

+24
View File
@@ -124,3 +124,27 @@ Cycle Number Run On To Number
---
(ERROR)
==================
Cycle Spanning Lines
==================
{% cycle 1
2 as x %}
---
(template
(content)
(cycle
(filtered_value
(value
(literal
(number))))
(filtered_value
(value
(literal
(number))))
variable: (identifier))
(content))
+24
View File
@@ -40,3 +40,27 @@ HELLO WORLD
(template
(content)))
(content))
==================
Filter With Spaced Chain
==================
<p>
{% filter lower
| title %}
HELLO WORLD
{% endfilter %}
</p>
---
(template
(content)
(filter_group
(filter_expression
(filter)
(filter))
(template
(content)))
(content))
+64
View File
@@ -0,0 +1,64 @@
==================
Load Single Library
==================
{% load static %}
---
(template
(content)
(load
(library
(identifier)))
(content))
==================
Load Multiple Libraries
==================
{% load i18n static %}
---
(template
(content)
(load
(library
(identifier))
(library
(identifier)))
(content))
==================
Load Dotted Library
==================
{% load django.contrib %}
---
(template
(content)
(load
(library
(identifier)
(identifier)))
(content))
==================
Load Names From Library
==================
{% load humanize naturaltime from django %}
---
(template
(content)
(load
(identifier)
(identifier)
(library
(identifier)))
(content))
+42
View File
@@ -323,3 +323,45 @@ Template Variable Translated String With Spaces
(ERROR)
==================
Template Variable Spanning Lines
==================
{{ value
|floatformat:2 }}
---
(template
(content)
(template_variable
(filtered_value
(value
(variable_attribute
(identifier)))
(filter_expression
(filter
(value
(literal
(number)))))))
(content))
==================
Template Variable With Spaced Filter
==================
{{ value | upper }}
---
(template
(content)
(template_variable
(filtered_value
(value
(variable_attribute
(identifier)))
(filter_expression
(filter))))
(content))