diff --git a/app.py b/app.py index 8194ea46..19782aff 100755 --- a/app.py +++ b/app.py @@ -12,8 +12,9 @@ def make_app(): return tornado.web.Application([ (r"/", MainHandler), ], - template_path='./templates', debug=os.getenv('DEBUG',False), + template_path=os.path.join(os.path.dirname(__file__), "templates"), + static_path=os.path.join(os.path.dirname(__file__), "static"), ) if __name__ == "__main__": diff --git a/templates/base.html.to b/templates/base.html.to index cfa4c9a2..a31de0a6 100644 --- a/templates/base.html.to +++ b/templates/base.html.to @@ -1,14 +1,28 @@ - - {% block title %}your title here{% end %} - -

{% block title %}your title here again{% end %}

- - - + + + + {% block title %}JEDI{% end %} + + + + +
+ {% block content %} + these are not the droids you are looking for + {% end %} +
+ + + + diff --git a/templates/hello.html.to b/templates/hello.html.to index eb4cb96f..bb2e3337 100644 --- a/templates/hello.html.to +++ b/templates/hello.html.to @@ -1,10 +1,11 @@ {% extends "base.html.to" %} {% block title %} -this is an amazing title for hello +hello {% end %} {% block content %} -This is more content for hello +

Hello!

+is it me you're looking for? {% end %}