@@ -839,15 +839,15 @@ You can then call it with `{% call name(args) %}`, ending with `{% endcall %}`:
839
839
840
840
{% endmacro %}
841
841
842
- {% call heading(s) %} {% endcall %}
842
+ {% call heading(s) %}{% endcall %}
843
843
```
844
844
845
845
You can place macros in a separate file and use them in your templates by using ` {% import %} ` :
846
846
847
847
``` jinja
848
848
{%- import "macro.html" as scope -%}
849
849
850
- {% call scope::heading(s) %} {% endcall %}
850
+ {% call scope::heading(s) %}{% endcall %}
851
851
```
852
852
853
853
You can optionally specify the name of the macro in ` endmacro ` :
@@ -865,7 +865,7 @@ You can also specify arguments by their name (as defined in the macro):
865
865
866
866
{% endmacro %}
867
867
868
- {% call heading(bold="something", arg="title") %} {% endcall%}
868
+ {% call heading(bold="something", arg="title") %}{% endcall%}
869
869
```
870
870
871
871
You can use whitespace characters around ` = ` :
@@ -914,9 +914,9 @@ Then if you don't pass a value for this argument, its default value will be used
914
914
915
915
``` jinja
916
916
{# We only specify `arg1`, so `arg2` will be "something" #}
917
- {% call heading(1) %} {% endcall %}
917
+ {% call heading(1) %}{% endcall %}
918
918
{# We specify both `arg1` and `arg2` so no default value is used #}
919
- {% call heading(1, 2) %} {% endcall %}
919
+ {% call heading(1, 2) %}{% endcall %}
920
920
```
921
921
922
922
### Call
@@ -958,7 +958,6 @@ Here is an example with a call block using arguments:
958
958
<dd>{{ user.description }}</dd>
959
959
</dl>
960
960
{% endcall %}
961
-
962
961
```
963
962
964
963
## Calling Rust macros
0 commit comments