Set variable in template
This commit is contained in:
parent
d4e787a547
commit
59c9fbc106
|
@ -4,4 +4,4 @@ from objects import glob # Global sharing of python objects in a manageable way
|
|||
@glob.app.route("/")
|
||||
@glob.app.route("/home")
|
||||
def home():
|
||||
return render_template("home.html", title = "Home")
|
||||
return render_template("home.html")
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
{% set title = "Home" %}
|
||||
|
||||
{% extends "layout/bootstrap.html" %}
|
||||
|
||||
{% block content %}
|
||||
<p>Template usage</p>
|
||||
<i class="fas fa-user"></i> <!-- uses solid style -->
|
||||
|
|
Loading…
Reference in New Issue
Block a user