Skip to content

Commit fb32ce6

Browse files
committed
Update worksheet.md
1 parent cc28257 commit fb32ce6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

worksheet.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ In a web application, a route is a certain path into your website, determined by
122122
123123
![Yummy Cakes](images/flask-cakes.png)
124124
125-
### Add HTML templates to your web app
125+
## Add HTML templates to your web app
126126
127127
Next you'll modify your existing routes to return full HTML templates rather than simple text strings.
128128
@@ -148,7 +148,7 @@ Next you'll modify your existing routes to return full HTML templates rather tha
148148
</html>
149149
```
150150
151-
1. Save the file as `index.html` in the `templates` directory.
151+
1. Save the file as `index.html` in the `templates` directory which you'll find inside `Pi` and then `webapp` directories.
152152
153153
1. Return to your `app.py` file in IDLE and modify the first line of your code to import the `render_template` function as well:
154154
@@ -197,7 +197,7 @@ Cascading Style Sheets (CSS) are rules for how HTML content is displayed by the
197197
198198
1. Save the file.
199199
200-
1. Now modify your HTML template to include the CSS file by adding a `<head>` tag containing a `<link>` tag with a reference to the stylesheet:
200+
1. Now modify your HTML template called `index.html` to include the CSS file by adding a `<head>` tag containing a `<link>` tag with a reference to the stylesheet:
201201
202202
```html
203203
<html>
@@ -214,7 +214,7 @@ Cascading Style Sheets (CSS) are rules for how HTML content is displayed by the
214214
215215
![Flask app with colour](images/flask-app-with-colour.png)
216216
217-
Your `webapp` project directory should look something like this now:
217+
You have so far created a number of files and directories. It is worth just double checking your `webapp` project directory which should cotain the following and have a structure like this now:
218218
219219
```
220220
├── app.py

0 commit comments

Comments
 (0)