This allows for functions to be called, currently with a single
variable optionally passed.
This also adds a check to make sure that variable literals are
supported.
\r
variable_accessor\r
=\r
- variable_accessor_brackets | variable_accessor_dot\r
+ variable_accessor_brackets | variable_accessor_call | variable_accessor_dot\r
;\r
\r
variable_accessor_brackets\r
"[" variable_identifier "]"\r
;\r
\r
+variable_accessor_call\r
+ =\r
+ "(" [variable_identifier] ")"\r
+ ;\r
+\r
variable_accessor_dot\r
=\r
"." variable_identifier\r
{%block single key=val param=value %}\r
test {{var}}\r
{%endblock%}\r
+{% for item in dict_var.values() %}\r
+ <li>{% block loop_item %}{{ item }}{% endblock %}</li>\r
+{% endfor %}\r
{# comment contents\r
across lines #}\r
{% raw %}\r
{% block %}fake content{{ fake vars }}\r
-{% endraw %}
\ No newline at end of file
+{% endraw %}\r
+{{ '{{' }}
\ No newline at end of file