handlers = [
(r"/", handler.topic.IndexHandler),
(r"/t/(\d+)", handler.topic.ViewHandler),
(r"/t/create/(.*)", handler.topic.CreateHandler),
(r"/t/edit/(.*)", handler.topic.EditHandler),
(r"/reply/edit/(.*)", handler.topic.ReplyEditHandler),
(r"/node/(.*)", handler.topic.NodeTopicsHandler),
(r"/u/(.*)/topics", handler.topic.UserTopicsHandler),
]
tornado 的方式似乎比 rails 的 resource 路由好理解一些。类似 sinatra。
你觉得呢?