feat: add howtoplay and about routes with placeholder templates

This commit is contained in:
Mathew Sir Guest the best
2026-05-06 22:46:49 -06:00
parent 7c3a8f22cf
commit 2104027c20
5 changed files with 32 additions and 0 deletions
+4
View File
@@ -7,6 +7,8 @@ import tornado.web
from db import get_engine, get_session_factory, init_db from db import get_engine, get_session_factory, init_db
from handlers.main import MainHandler from handlers.main import MainHandler
from handlers.game import GameHandler from handlers.game import GameHandler
from handlers.howtoplay import HowToPlayHandler
from handlers.about import AboutHandler
from handlers.api import ( from handlers.api import (
CategoriesHandler, CategoriesHandler,
NewGameHandler, NewGameHandler,
@@ -22,6 +24,8 @@ def make_app(session_factory=None):
[ [
(r"/", MainHandler), (r"/", MainHandler),
(r"/game", GameHandler), (r"/game", GameHandler),
(r"/howtoplay", HowToPlayHandler),
(r"/about", AboutHandler),
(r"/api/categories", CategoriesHandler), (r"/api/categories", CategoriesHandler),
(r"/api/game/new", NewGameHandler), (r"/api/game/new", NewGameHandler),
(r"/api/game/([^/]+)", GameStateHandler), (r"/api/game/([^/]+)", GameStateHandler),
+6
View File
@@ -0,0 +1,6 @@
import tornado.web
class AboutHandler(tornado.web.RequestHandler):
def get(self):
self.render("about.html")
+6
View File
@@ -0,0 +1,6 @@
import tornado.web
class HowToPlayHandler(tornado.web.RequestHandler):
def get(self):
self.render("howtoplay.html")
+8
View File
@@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block title %}Word Search — About{% end %}
{% block content %}
<h2>About</h2>
<p>About page coming soon.</p>
{% end %}
+8
View File
@@ -0,0 +1,8 @@
{% extends "base.html" %}
{% block title %}Word Search — How to Play{% end %}
{% block content %}
<h2>How to Play</h2>
<p>Instructions coming soon.</p>
{% end %}