Block parameters should support all of the things that a function
call parameter would normally support. This includes key-value
paramters and in our test we include the transaltion example from
the documentation.
\r
block_parameter\r
=\r
- {SP}+ @:(IDENTIFIER "=" block_parameter_value)\r
- | {SP}+ @:block_parameter_value\r
- ;\r
-block_parameter_value\r
- =\r
- variable_identifier\r
+ variable_accessor_call_parameter\r
;\r
\r
variable_expression\r
{% raw %}\r
{% block %}fake content{{ fake vars }}\r
{% endraw %}\r
-{{ '{{' }}
\ No newline at end of file
+{{ '{{' }}\r
+{% trans user=user.username %}Hello, {{ user }}!{% endtrans %}
\ No newline at end of file