diff options
author | Linnnus <[email protected]> | 2024-03-20 15:17:36 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-03-20 15:19:40 +0100 |
commit | db93ff98409fac1c1a3742d0f81484c985d6d55c (patch) | |
tree | a32c8eabb86b10588b6da96d124540f02cec2de1 /app.py | |
parent | 3c1e773f0a91f1a8ef9e637738bb39318ece68f3 (diff) |
Add templating engine and index page
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,9 +1,10 @@ from bottle import Bottle, run +from bottle import jinja2_template as template app = Bottle() [email protected]('/hello') [email protected]("/") def hello(): - return "Hello World!" + return template("index") run(app, host='localhost', port=8080) |