Skip to content

Commit

Permalink
Add templates
Browse files Browse the repository at this point in the history
  • Loading branch information
Dvd848 committed Nov 22, 2020
1 parent 3eb7f2a commit 9958e99
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from flask import Flask, Response
from flask import Flask, Response, render_template
from enum import Enum
from flask.logging import create_logger
from filter import filter_writeups, FilterException
Expand Down Expand Up @@ -35,7 +35,7 @@ def writeups():

@app.route('/')
def index():
return "<h1>Hello World!</h1>"
return render_template('index.html', title='CTFTime Writeups')

if __name__ == '__main__':
app.run(host = '0.0.0.0', threaded = True, port = 5000)
12 changes: 12 additions & 0 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!doctype html>

<html lang="en">
<head>
<meta charset="utf-8"/>
<title>{{ title }}</title>
</head>

<body>
Hello World!
</body>
</html>

0 comments on commit 9958e99

Please sign in to comment.