This adds support for dot accessors on variables in such a way that
it is flexible enough to match the handling provided by the existing
template engine.
;\r
\r
variable_accessor\r
+ =\r
+ variable_accessor_brackets | variable_accessor_dot\r
+ ;\r
+\r
+variable_accessor_brackets\r
=\r
"[" variable_identifier "]"\r
;\r
\r
+variable_accessor_dot\r
+ =\r
+ "." variable_identifier\r
+ ;\r
+\r
variable_filter\r
=\r
{SP}* "|" {SP}* @:filter\r
{% with key=val %}\r
-{{ dict_var['single']["double"] |test(first ,second, third)|filter | lastFilter}}\r
+{{ dict_var['single']["double"].dot |test(first ,second, third)|filter | lastFilter}}\r
{%block single key=val param=value %}\r
test {{var}}\r
{%endblock%}\r