add tests and queries
This commit is contained in:
@@ -44,7 +44,7 @@ Cycle With As
|
||||
(value
|
||||
(literal
|
||||
(string))))
|
||||
name: (identifier))
|
||||
variable: (identifier))
|
||||
(content))
|
||||
|
||||
==================
|
||||
@@ -69,7 +69,7 @@ Cycle With As And Silent
|
||||
(value
|
||||
(literal
|
||||
(string))))
|
||||
name: (identifier))
|
||||
variable: (identifier))
|
||||
(content))
|
||||
|
||||
==================
|
||||
|
||||
+43
-40
@@ -13,19 +13,20 @@ For Basic
|
||||
(template
|
||||
(content)
|
||||
(for_group
|
||||
variables: (identifier)
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier))))
|
||||
(template
|
||||
(content)
|
||||
(template_variable
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier)))))
|
||||
(content)))
|
||||
(for_scope
|
||||
variable: (identifier)
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier))))
|
||||
(template
|
||||
(content)
|
||||
(template_variable
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier)))))
|
||||
(content))))
|
||||
(content))
|
||||
|
||||
==================
|
||||
@@ -43,20 +44,21 @@ For With Multiple Variables
|
||||
(template
|
||||
(content)
|
||||
(for_group
|
||||
variables: (identifier)
|
||||
variables: (identifier)
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier))))
|
||||
(template
|
||||
(content)
|
||||
(template_variable
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier)))))
|
||||
(content)))
|
||||
(for_scope
|
||||
variable: (identifier)
|
||||
variable: (identifier)
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier))))
|
||||
(template
|
||||
(content)
|
||||
(template_variable
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier)))))
|
||||
(content))))
|
||||
(content))
|
||||
|
||||
==================
|
||||
@@ -76,19 +78,20 @@ For With Empty
|
||||
(template
|
||||
(content)
|
||||
(for_group
|
||||
variables: (identifier)
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier))))
|
||||
(template
|
||||
(content)
|
||||
(template_variable
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier)))))
|
||||
(content))
|
||||
(for_scope
|
||||
variable: (identifier)
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier))))
|
||||
(template
|
||||
(content)
|
||||
(template_variable
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier)))))
|
||||
(content)))
|
||||
(template
|
||||
(content)))
|
||||
(content))
|
||||
|
||||
@@ -9,5 +9,5 @@ Partial Basic
|
||||
(template
|
||||
(content)
|
||||
(partial
|
||||
name: (identifier))
|
||||
(identifier))
|
||||
(content))
|
||||
|
||||
@@ -13,7 +13,7 @@ Partialdef Basic
|
||||
(template
|
||||
(content)
|
||||
(partialdef_group
|
||||
name: (push_partial)
|
||||
(push_partial)
|
||||
(template
|
||||
(content))
|
||||
(pop_partial))
|
||||
@@ -34,7 +34,7 @@ Partialdef Inline
|
||||
(template
|
||||
(content)
|
||||
(partialdef_group
|
||||
name: (push_partial)
|
||||
(push_partial)
|
||||
(template
|
||||
(content))
|
||||
(pop_partial))
|
||||
|
||||
@@ -9,7 +9,7 @@ Verbatim Basic
|
||||
(template
|
||||
(content)
|
||||
(verbatim_group
|
||||
name: (push_verbatim)
|
||||
(push_verbatim)
|
||||
(verbatim_content)
|
||||
(pop_verbatim))
|
||||
(content))
|
||||
@@ -25,7 +25,7 @@ Verbatim Empty
|
||||
(template
|
||||
(content)
|
||||
(verbatim_group
|
||||
name: (push_verbatim)
|
||||
(push_verbatim)
|
||||
(pop_verbatim))
|
||||
(content))
|
||||
|
||||
@@ -43,7 +43,7 @@ Verbatim Ignores Tags
|
||||
(template
|
||||
(content)
|
||||
(verbatim_group
|
||||
name: (push_verbatim)
|
||||
(push_verbatim)
|
||||
(verbatim_content)
|
||||
(pop_verbatim))
|
||||
(content))
|
||||
@@ -59,7 +59,7 @@ Verbatim With Name
|
||||
(template
|
||||
(content)
|
||||
(verbatim_group
|
||||
name: (push_verbatim)
|
||||
(push_verbatim)
|
||||
(verbatim_content)
|
||||
(pop_verbatim))
|
||||
(content))
|
||||
@@ -77,7 +77,7 @@ Avoid template rendering via the {% verbatim %}{% endverbatim %} block.
|
||||
(template
|
||||
(content)
|
||||
(verbatim_group
|
||||
name: (push_verbatim)
|
||||
(push_verbatim)
|
||||
(verbatim_content)
|
||||
(pop_verbatim))
|
||||
(content))
|
||||
|
||||
@@ -11,8 +11,8 @@ With Basic
|
||||
(template
|
||||
(content)
|
||||
(with_group
|
||||
name: (identifier)
|
||||
variables: (filtered_value
|
||||
variable: (identifier)
|
||||
(filtered_value
|
||||
(value
|
||||
(variable_attribute
|
||||
(identifier)
|
||||
@@ -40,13 +40,13 @@ With Multiple Variables
|
||||
(template
|
||||
(content)
|
||||
(with_group
|
||||
name: (identifier)
|
||||
variables: (filtered_value
|
||||
variable: (identifier)
|
||||
(filtered_value
|
||||
(value
|
||||
(literal
|
||||
(number))))
|
||||
name: (identifier)
|
||||
variables: (filtered_value
|
||||
variable: (identifier)
|
||||
(filtered_value
|
||||
(value
|
||||
(literal
|
||||
(number))))
|
||||
|
||||
@@ -1,27 +1,32 @@
|
||||
{% load greet from custom.tags %}
|
||||
{% partialdef url %}
|
||||
<li>{% greet %} {{ user }}</li>
|
||||
{% endpartialdef %}
|
||||
<body>
|
||||
{# hello this is an example file #}
|
||||
<header>
|
||||
<h1>{{ page.title|title }}</h1>
|
||||
<nav>
|
||||
{% if page.links|length > 0 %}
|
||||
{% if page.links|length > 0 %}
|
||||
<ul>
|
||||
{% for label, link in page.links %}
|
||||
{% for label, link in page.links %}
|
||||
<li>
|
||||
{% url 'nav-pages' link as href %}
|
||||
{% url 'nav-pages' link as href %}
|
||||
<a href="{{href}}">{{label}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<h1>EMPTY</h1>
|
||||
{% endblock %}
|
||||
|
||||
<footer>
|
||||
{% for foot in page.footer %}
|
||||
{% for user in page.footer %}
|
||||
{% partial url %}
|
||||
{% endfor %}
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user