\r
variable_accessor_call_parameter_value\r
=\r
- {SP}* @:variable_identifier {SP}*\r
+ {SP}* @:( variable_tests | variable_identifier ) {SP}*\r
+ ;\r
+\r
+variable_tests\r
+ =\r
+ left:variable_identifier {SP}*\r
+ (\r
+ | ( "is" {SP}* test_function:variable_accessor_call_parameter_value )\r
+ | ( comparator:variable_tests_comparator right: variable_accessor_call_parameter_value )\r
+ | ( logical_operator:variable_tests_logical_operator right: variable_accessor_call_parameter_value )\r
+ )\r
+ ;\r
+\r
+variable_tests_comparator\r
+ =\r
+ | "=="\r
+ | "!="\r
+ | ">"\r
+ | ">="\r
+ | "<"\r
+ | "<="\r
+ ;\r
+\r
+variable_tests_logical_operator\r
+ =\r
+ | "and"\r
+ | "or"\r
;\r
\r
variable_accessor_dot\r
('downloads.html', 'Downloads')] %}\r
<li><a href="{{ href }}">{{ caption }}</a></li>\r
{% endfor %}\r
-{% trans user=user.username %}Hello, {{ user }}!{% endtrans %}
\ No newline at end of file
+{% trans user=user.username %}Hello, {{ user }}!{% endtrans %}\r
+{% set navigation = [('index.html', 'Index'), ('about.html', 'About')] %}\r
+{% set key, value = call_something() %}\r
+{% for value in values %}\r
+ {% if loop.previtem is defined and value > loop.previtem %}\r
+ The value just increased!\r
+ {% endif %}\r
+ {{ value }}\r
+ {% if loop.nextitem is defined and loop.nextitem > value %}\r
+ The value will increase even more!\r
+ {% endif %}\r
+{% endfor %}\r