Skip to content

Commit 82ab54f

Browse files
committed
Fix annotation.
1 parent a215cc1 commit 82ab54f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/source/template-tags/template.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,36 +28,36 @@ Make sure to [install `dj_angles`](../installation.md#template-tags) and include
2828

2929
The `template` looks like a regular Python function. The name of the function will be used to "call" it later to render the function. The arguments are passed to the function when it is called -- both args and kwargs are supported.
3030

31-
```{warning}
31+
````{warning}
3232
There is not support for passing in an arg that would fallback to a kwarg. The number of arguments passed in to a `call` must be the same number of arguments defined in the `template`.
3333
34-
````html
34+
```html
3535
<!-- this works -->
3636
{% template field(name, value='') %}
3737
...
3838
{% endtemplate %}
3939
4040
{% call field('first-name') %}
41-
````
41+
```
4242
43-
````html
43+
```html
4444
<!-- this works -->
4545
{% template field(name='', value='') %}
4646
...
4747
{% endtemplate %}
4848
4949
{% call field(name='first-name') %}
50-
````
50+
```
5151
52-
````html
52+
```html
5353
<!-- this does NOT work -->
5454
{% template field(name='', value='') %}
5555
...
5656
{% endtemplate %}
5757
5858
{% call field('first-name') %}
59-
````
6059
```
60+
````
6161

6262
### Template variables
6363

0 commit comments

Comments
 (0)