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`.
132132import idom
133133
134134@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 } ! " )
137137```
138138
139139## ` example_app/templates/your-template.html `
@@ -158,7 +158,7 @@ In context this will look a bit like the following...
158158<html>
159159 <body>
160160 ...
161- {% idom_view "your_app.example_app.components.Hello" name ="World" %}
161+ {% idom_view "your_app.example_app.components.Hello" greeting_recipient ="World" %}
162162 </body>
163163</html>
164164```
You can’t perform that action at this time.
0 commit comments