diff --git a/app.py b/app.py index 6a0c2a3..510d8e8 100644 --- a/app.py +++ b/app.py @@ -7,6 +7,8 @@ import tornado.web from db import get_engine, get_session_factory, init_db from handlers.main import MainHandler from handlers.game import GameHandler +from handlers.howtoplay import HowToPlayHandler +from handlers.about import AboutHandler from handlers.api import ( CategoriesHandler, NewGameHandler, @@ -22,6 +24,8 @@ def make_app(session_factory=None): [ (r"/", MainHandler), (r"/game", GameHandler), + (r"/howtoplay", HowToPlayHandler), + (r"/about", AboutHandler), (r"/api/categories", CategoriesHandler), (r"/api/game/new", NewGameHandler), (r"/api/game/([^/]+)", GameStateHandler), diff --git a/handlers/about.py b/handlers/about.py new file mode 100644 index 0000000..9605cff --- /dev/null +++ b/handlers/about.py @@ -0,0 +1,6 @@ +import tornado.web + + +class AboutHandler(tornado.web.RequestHandler): + def get(self): + self.render("about.html") diff --git a/handlers/howtoplay.py b/handlers/howtoplay.py new file mode 100644 index 0000000..4d192b4 --- /dev/null +++ b/handlers/howtoplay.py @@ -0,0 +1,6 @@ +import tornado.web + + +class HowToPlayHandler(tornado.web.RequestHandler): + def get(self): + self.render("howtoplay.html") diff --git a/templates/about.html b/templates/about.html new file mode 100644 index 0000000..356a7bf --- /dev/null +++ b/templates/about.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block title %}Word Search — About{% end %} + +{% block content %} +

About

+

About page coming soon.

+{% end %} diff --git a/templates/howtoplay.html b/templates/howtoplay.html new file mode 100644 index 0000000..83126e3 --- /dev/null +++ b/templates/howtoplay.html @@ -0,0 +1,8 @@ +{% extends "base.html" %} + +{% block title %}Word Search — How to Play{% end %} + +{% block content %} +

How to Play

+

Instructions coming soon.

+{% end %}