more tests
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
==================
|
||||
Url Basic
|
||||
==================
|
||||
|
||||
{% url 'view-name' %}
|
||||
|
||||
---
|
||||
|
||||
(template
|
||||
(content)
|
||||
(url_block
|
||||
(string))
|
||||
(content))
|
||||
|
||||
==================
|
||||
Url With Positional Args
|
||||
==================
|
||||
|
||||
{% url 'view-name' arg1 arg2 %}
|
||||
|
||||
---
|
||||
|
||||
(template
|
||||
(content)
|
||||
(url_block
|
||||
(string)
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier))))
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier)))))
|
||||
(content))
|
||||
|
||||
==================
|
||||
Url With Keyword Args
|
||||
==================
|
||||
|
||||
{% url 'view-name' key=val %}
|
||||
|
||||
---
|
||||
|
||||
(template
|
||||
(content)
|
||||
(url_block
|
||||
(string)
|
||||
(identifier)
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier)))))
|
||||
(content))
|
||||
|
||||
==================
|
||||
Url With As
|
||||
==================
|
||||
|
||||
{% url 'view-name' as myurl %}
|
||||
|
||||
---
|
||||
|
||||
(template
|
||||
(content)
|
||||
(url_block
|
||||
(string)
|
||||
variable: (identifier))
|
||||
(content))
|
||||
Reference in New Issue
Block a user