Skip to content

Commit 60dcaaa

Browse files
committed
Added initial app and templates.
1 parent 96eadf3 commit 60dcaaa

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

‎templates/default.html‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% extends "layout.html" %} {% block title %}Home{% endblock %} {% block head %} {% endblock %} {% block content %}
2+
3+
<h1>Welcome to WhoopLED!</h1>
4+
5+
{% endblock %}

‎templates/layout.html‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!doctype html>
2+
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
7+
<title>{% block title %}{% endblock %}</title>
8+
9+
<link rel="stylesheet" href="./static/styles.css"></link>
10+
11+
</head>
12+
13+
<body>
14+
15+
{% block content %}{% endblock %}
16+
17+
</body>
18+
</html>

‎whoopled.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from flask import Flask, render_template
2+
3+
app = Flask(__name__, static_url_path='/static')
4+
5+
@app.route('/')
6+
def default():
7+
return render_template('default.html')
8+

0 commit comments

Comments
 (0)