def __init__(self, router, payload):
		super().__init__(router, payload)

		self.__view = AboutView(self)
		self.__view.render(payload)
from views import SimpleView, AboutView

routes = {'/': SimpleView(), '/about/': AboutView()}
示例#3
0
from views import IndexView, AboutView, OtherView

routes = {
    '/': IndexView(),
    '/about/': AboutView(),
    '/other/': OtherView(),
}