From 2104027c20c26e299aacbb9a450e6cbf5d09cfd9 Mon Sep 17 00:00:00 2001 From: Mathew Sir Guest the best Date: Wed, 6 May 2026 22:46:49 -0600 Subject: [PATCH] feat: add howtoplay and about routes with placeholder templates --- app.py | 4 ++++ handlers/about.py | 6 ++++++ handlers/howtoplay.py | 6 ++++++ templates/about.html | 8 ++++++++ templates/howtoplay.html | 8 ++++++++ 5 files changed, 32 insertions(+) create mode 100644 handlers/about.py create mode 100644 handlers/howtoplay.py create mode 100644 templates/about.html create mode 100644 templates/howtoplay.html 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 %}