Skip to content

Commit 11ccb97

Browse files
committed
Merge pull request #7 from nemilya/master
Fixed tabs in text
2 parents cd0881c + dc80ef5 commit 11ccb97

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

worksheet.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,19 @@ Now you're going to add a new route to your web app, which will create another w
9696
9797
In a web application, a route is a certain path into your website, determined by the request sent by the user when they type it into their web browser. It's up to you which routes are enabled, and what each of them does.
9898

99-
In the "Hello Raspberry Pi" example we used a single route:
99+
In the "Hello Raspberry Pi" example we used a single route:
100100

101-
```python
102-
@app.route('/')
103-
def index():
104-
return 'Hello world'
105-
```
101+
```python
102+
@app.route('/')
103+
def index():
104+
return 'Hello world'
105+
```
106106

107-
This route is page up of three parts:
107+
This route is page up of three parts:
108108

109-
- `@app.route('/')`: this determines the entry point; the `/` means the root of the website, so just `http://127.0.0.1:5000/`.
110-
- `def index()`: this is the name we give to the route. Here it was called `index` because it's the index of the website.
111-
- `return 'Hello world'`: this is the content of the web page which is returned when the user browses the index of the website.
109+
- `@app.route('/')`: this determines the entry point; the `/` means the root of the website, so just `http://127.0.0.1:5000/`.
110+
- `def index()`: this is the name we give to the route. Here it was called `index` because it's the index of the website.
111+
- `return 'Hello world'`: this is the content of the web page which is returned when the user browses the index of the website.
112112
113113
1. Create a new route by adding the following lines below the first route:
114114

0 commit comments

Comments
 (0)