Commit a773b1c1 authored by colmoneill's avatar colmoneill

a tiny templating logic

parent 75d0a83e
......@@ -6,8 +6,8 @@ app = Flask(__name__)
@app.route("/")
@app.route("/index")
def index():
return "Hello, World!"
#return render_template("home.html")
#return "Hello, World!"
return render_template("home.html")
#@app.errorhandler(404)
#def not_found(error):
......
<!DOCTYPE html>
<html lang="en">
<head>
{% block head %}
<title>{% block title %}beMaker{% endblock title %}</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="initial-scale=1">
<link rel="stylesheet" href="static/">
{% endblock head %}
</head>
<body>
<div class="is-typeset">
{% block nav %}
{% endblock nav %}
{% block content %}
{% endblock content %}
{% block footer %}
{% endblock footer %}
</div>
<script src="static/"></script>
</body>
</html>
{% extends "base.html" %}
{% block content %}
yo
{% endblock %}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment