Пример #1
1
 def __init__(self, main, home, bar, icon, title, pretitle, posttitle,
              subtitle, separate, precontent, postcontent, sig_off, onload=''):
     self.lamone = EL('body')(id='body')
     nav = appbar(home=home, mark=bar, icon=icon)
     title = title_bar(ti=title, pre=pretitle, post=posttitle,
                       sub=subtitle)
     outdiv = div(br())
     indiv = div(hr())
     sepdiv = separate and div(hr()) or div(br())
     self.lamone(outdiv)(nav)(indiv)(title)(sepdiv)
     self.lamone(precontent)
     self.lamone(main)
     self.lamone(postcontent)
     self.lamone(indiv)(nav)(outdiv)
     if not sig_off:
         self.lamone(signature())
     if onload:
         self.lamone(onload=onload)
Пример #2
0
    def __init__(self):
        br = EL('br')
        basmala = div('\nبسم الله الرحمن الرحيم')
        sakura = a('sakura internet', url='http://www.sakura.ne.jp/')
        python = a('python', url='http://www.python.org/')
        kt3k = a('kt3k', url='http://kt3k.org/')
        image_licenses = a('about image licenses', url='/images/')
        stmp = time_stamp(bracket_style=('"','" JST'))
        self.lamone = div('''
%(br)s%(basmala)s
%(br)s%(stmp)s%(br)s
%(br)s
hosted by%(sakura)s%(br)s
powered by%(python)s%(br)s
%(br)s
Copyright (C) 2005-2012%(kt3k)s
some rights reserved.%(br)s
%(br)s''' % locals())['footer']
Пример #3
0
 def __init__(self, ti, pre='', post='', sub=''):
     self.lamone = div()['title']
     if pre:
         x = span(pre)(id='pretitle')['pretitle']
         self.lamone(x)
     if ti:
         x = span(ti)(id='title')['title']
         self.lamone(x)
     if post:
         x = span(post)(id='posttitle')['posttitle']
         self.lamone(x)
     if sub:
         y = br()
         x = span(sub)['transgressing']
         self.lamone(y)(x)