added some more instructions for templates in flas
This commit is contained in:
parent
92e58eef5a
commit
a2beac108e
@ -64,8 +64,9 @@ def post(path):
|
|||||||
return render_template('post.html', content=html)
|
return render_template('post.html', content=html)
|
||||||
```
|
```
|
||||||
|
|
||||||
Create templates for the home page and individual blog posts:
|
Create templates for the home page and individual blog posts, we can do this by creating a new directory in root of project called `templates`. And then further create the two following `html` files:
|
||||||
- `home.html`:
|
|
||||||
|
- `index.html`:
|
||||||
|
|
||||||
``` html
|
``` html
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
Loading…
Reference in New Issue
Block a user