add True, False, None

This commit is contained in:
danhanson committed 2026-09-10 15:00:39 -05:00
1 parent c0a2e0099c
commit 913ca69e6c
9 files changed
+40372 -39523

No files matched your search

+26
View File
@@ -156,3 +156,29 @@ If Operator Adjacent To Value
{% if 1and 2 %}yes{% endif %}
---
==================
If Is Not None
==================
{% if status is not None %}yes{% endif %}
---
(template
(content)
(if_group
(if_clause
(predicate
(filtered_value
(value
(variable_attribute
(identifier))))
(binaryOperator)
(filtered_value
(value
(literal
(none)))))
(template
(content))))
(content))
+100
View File
@@ -361,3 +361,103 @@ Template Variable With Spaced Filter
(filter_expression
(filter))))
(content))
==================
Template Variable True
==================
{{ True }}
---
(template
(content)
(template_variable
(filtered_value
(value
(literal
(boolean)))))
(content))
==================
Template Variable False
==================
{{ False }}
---
(template
(content)
(template_variable
(filtered_value
(value
(literal
(boolean)))))
(content))
==================
Template Variable None
==================
{{ None }}
---
(template
(content)
(template_variable
(filtered_value
(value
(literal
(none)))))
(content))
==================
Template Variable Boolean As Filter Argument
==================
{{ value|default:True }}
---
(template
(content)
(template_variable
(filtered_value
(value
(variable_attribute
(identifier)))
(filter_expression
(filter
argument: (value
(literal
(boolean)))))))
(content))
==================
Template Variable Name Beginning With A Literal
==================
{{ Truest }}
---
(template
(content)
(template_variable
(filtered_value
(value
(variable_attribute
(identifier)))))
(content))
==================
Template Variable Attribute Of A Literal
:error
==================
{{ None.x }}
---
+21
View File
@@ -111,3 +111,24 @@ With Repeating A Binding Of The Tag Before It
(template
(content))))
(content))
==================
With A Binding Named After A Literal
==================
{% with True=1 %}a{% endwith %}
---
(template
(content)
(with_group
(with_clause
variable: (identifier)
(filtered_value
(value
(literal
(number))))
(template
(content))))
(content))