Files
tree-sitter-django/test/corpus/with.txt
T
2026-08-11 18:15:35 -05:00

62 lines
1.0 KiB
Plaintext

==================
With Basic
==================
{% with total=business.employees.count %}
{{ total }}
{% endwith %}
---
(template
(content)
(with_group
name: (identifier)
variables: (filtered_value
(value
(variable_attribute
(identifier)
(attribute))))
(template
(content)
(template_variable
(filtered_value
(value
(variable_attribute
(identifier)))))
(content)))
(content))
==================
With Multiple Variables
==================
{% with a=1 b=2 %}
{{ a }}
{% endwith %}
---
(template
(content)
(with_group
name: (identifier)
variables: (filtered_value
(value
(literal
(number))))
name: (identifier)
variables: (filtered_value
(value
(literal
(number))))
(template
(content)
(template_variable
(filtered_value
(value
(variable_attribute
(identifier)))))
(content)))
(content))