shellbot.routes.text module

class shellbot.routes.text.Text(context=None, **kwargs)[source]

Bases: shellbot.routes.base.Route

Implements a static web page

>>>page = “<html> ... </html>” >>>route = text(route=’/index’, page=page)

When the route is requested over the web, static content is provided in return.

>>>route.get() “<html> ... </html>”

This class handles only GET requests.

get()[source]
page = None
route = '/'