You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: worksheet.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -239,7 +239,7 @@ Now you'll create a new route on your website so that when you go to `http://127
239
239
```
240
240
241
241
- `@app.route('/hello/<name>')` - the `<name>` part means it pass the name into the `hello` function as a variable called `name`
242
-
- `def name(my_name)` - this is the function that determines what content is shown - this time it takes a parameter - the given name
242
+
- `def hello(name)` - this is the function that determines what content is shown - this time it takes a parameter: the given name
243
243
- `return render_template('page.html', name=name)` - here we look up the template `page.html` and pass in the variable `name` from the URL, so the template can use it
244
244
245
245
1. Create a new HTML template called `page.html` using the Text Editor, and add the following HTML code to it:
0 commit comments