Skip to content

Commit 8ac2e08

Browse files
committed
update docs
1 parent f48db30 commit 8ac2e08

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

docs/source/context.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ def get_context_data(self, **kwargs):
1313

1414
Then you can get the `var2` in the component template via `{{ var2 }}`, just like other variables.
1515

16-
## Special variables in the component context
17-
18-
### Self
16+
## Self
1917

2018
`self` points to the component instance itself, since each component has its own context, so each time the component is rendered, `self` is overwritten, and this would not cause any conflict.

docs/source/templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
You can use `template` variable to define the template inline.
66

7-
### Template file
7+
## Template file
88

99
To use an external template file, set the `template_name` variable
1010

11-
### Dynamic template
11+
## Dynamic template
1212

1313
You can use `get_template_names` method to do dynamic template selection.
1414

0 commit comments

Comments
 (0)