File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -132,8 +132,8 @@ ultimately be referenced by name in `your-template.html`. `your-template.html`.
132
132
import idom
133
133
134
134
@idom.component
135
- def Hello (name ): # component names are camelcase by convention
136
- return Header(f " Hello { name } ! " )
135
+ def Hello (greeting_recipient ): # component names are camelcase by convention
136
+ return Header(f " Hello { greeting_recipient } ! " )
137
137
```
138
138
139
139
## ` example_app/templates/your-template.html `
@@ -158,7 +158,7 @@ In context this will look a bit like the following...
158
158
<html>
159
159
<body>
160
160
...
161
- {% idom_view "your_app.example_app.components.Hello" name ="World" %}
161
+ {% idom_view "your_app.example_app.components.Hello" greeting_recipient ="World" %}
162
162
</body>
163
163
</html>
164
164
```
You can’t perform that action at this time.
0 commit comments