add Django 6 support and simpleTag

This commit is contained in:
danhanson committed 2026-09-06 20:40:39 -05:00
1 parent e357dc17ad
commit fc36d7d7b2
11 files changed
+25759 -23427

No files matched your search

+81
View File
@@ -0,0 +1,81 @@
==================
Csp Nonce Attr
==================
{% csp_nonce_attr %}
---
(template
(content)
(csp_nonce_attr)
(content))
==================
Csp Nonce Attr With Argument And As
==================
{% csp_nonce_attr "script" as nonce %}
---
(template
(content)
(csp_nonce_attr
(filtered_value
(value
(literal
(string))))
variable: (identifier))
(content))
==================
Csp Nonce Attr With Media Keyword
==================
{% csp_nonce_attr media="script" %}
---
(template
(content)
(csp_nonce_attr
(filtered_value
(value
(literal
(string)))))
(content))
==================
Csp Nonce Attr Takes One Argument
:error
==================
{% csp_nonce_attr "a" "b" %}
---
(ERROR)
==================
Csp Nonce Attr Rejects Unknown Keyword
:error
==================
{% csp_nonce_attr other="b" %}
---
(ERROR)
==================
Csp Nonce Attr Rejects Repeated Keyword
:error
==================
{% csp_nonce_attr media=1 media=2 %}
---
(ERROR)
+1 -1
View File
@@ -42,5 +42,5 @@ Firstof With As
(value
(variable_attribute
(identifier))))
(identifier))
variable: (identifier))
(content))
+28
View File
@@ -0,0 +1,28 @@
==================
Now Basic
==================
{% now "Y-m-d" %}
---
(template
(content)
(now
(string))
(content))
==================
Now With As
==================
{% now "Y" as today %}
---
(template
(content)
(now
(string)
variable: (identifier))
(content))
+28 -1
View File
@@ -40,10 +40,37 @@ Querystring With Identifier And Key Value
(template
(content)
(query_string
(identifier)
(filtered_value
(value
(variable_attribute
(identifier))))
(identifier)
(filtered_value
(value
(literal
(number)))))
(content))
==================
Querystring With Expression Argument And As
==================
{% querystring request.GET page=2 as qs %}
---
(template
(content)
(query_string
(filtered_value
(value
(variable_attribute
(identifier)
(attribute))))
(identifier)
(filtered_value
(value
(literal
(number))))
variable: (identifier))
(content))