Esempio n. 1
0
 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'))
Esempio n. 2
0
 def assemble(self):
     self.define_view(
         '/',
         title='Hello',
         page=HTML5Page.factory(use_layout=layout_for_widget))
Esempio n. 3
0
 def assemble(self):
     self.define_view('/',
                      title='Hello',
                      page=HTML5Page.factory().use_layout(
                          fixture.MyLayout()))
Esempio n. 4
0
 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'))