Skip to content

Commit

Permalink
checking templates
Browse files Browse the repository at this point in the history
  • Loading branch information
l0rtk committed Dec 17, 2021
1 parent 7f793b4 commit d53f658
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@
app = Flask(__name__)

@app.route("/")
def hello_world():
def index():
return render_template("starter.html")


@app.route("/loading")
def loading():
return render_template("spinner.html")

if "__main__" == __name__:
app.run()
11 changes: 11 additions & 0 deletions templates/spinner.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends 'base.html' %}

{% block content %}

<div class="d-flex justify-content-center mt-5">
<div class="spinner-border" role="status">
<span class="visually-hidden">Loading...</span>
</div>
</div>

{% endblock %}

0 comments on commit d53f658

Please sign in to comment.