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()}
from views import IndexView, AboutView, OtherView routes = { '/': IndexView(), '/about/': AboutView(), '/other/': OtherView(), }