def assemble(self): home = self.define_view('/', title='Hello') home.set_page(HTML5Page.factory().use_layout( PageLayout( contents_layout=ColumnLayout('main').with_slots()))) home.set_slot('main', P.factory(text='Hello world')) home.set_slot('footer', P.factory(text='I am the footer'))
def assemble(self): self.define_view( '/', title='Hello', page=HTML5Page.factory(use_layout=layout_for_widget))
def assemble(self): self.define_view('/', title='Hello', page=HTML5Page.factory().use_layout( fixture.MyLayout()))
def assemble(self): home = self.define_view('/', title='Hello') home.set_page(HTML5Page.factory().use_layout(BasicPageLayout())) home.set_slot('main', P.factory(text='Hello world')) home.set_slot('footer', P.factory(text='I am the footer'))