Skip to content

Commit f438c1f

Browse files
committed
Correct function name and parameter in explanation, re: #3
1 parent adb5a6c commit f438c1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

worksheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Now you'll create a new route on your website so that when you go to `http://127
239239
```
240240

241241
- `@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
243243
- `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
244244

245245
1. Create a new HTML template called `page.html` using the Text Editor, and add the following HTML code to it:

0 commit comments

Comments
 (0)