Ejemplo n.º 1
0
 def init(self):
     self(head=tags.Head()(
         charset=tags.Meta(),
         description=tags.Meta(name='description'),
         keywords=tags.Meta(name='keywords'),
         title=tags.Title(),
     ),
          body=tags.Body())
Ejemplo n.º 2
0
 def init(self):
     self(
         head=tags.Head()(
             title=tags.Title(),
             charset=tags.Meta(),
             description=tags.Meta(name="description"),
             keywords=tags.Meta(name="keywords"),
         ),
         body=tags.Body(),
     )
Ejemplo n.º 3
0
 def init(self):
     self.head(self.css(), self.js())
     self.head(tags.Meta(name="viewport", content="width=device-width, initial-scale=1"))
     self.head.title(self.page_title)
     self.navbar = NavBar(klass='navbar navbar-expand-lg navbar-dark bg-dark fixed-top')._make_menu()
     self.content = tags.Div(klass='container main-window')
     self.footer = tags.Footer(klass='footer footer-dark bg-dark')(
         tags.Div(klass='container')(
             tags.P(klass='text-muted')(
                 "created by Federico Cerchiari with ",
                 tags.Img(src=url_for('static', filename='img/brain.png'), height="17px"),
                 ", Python and TemPy. "
             ),
         )
     )
     self.body(
         self.navbar,
         self.content,
         self.footer
     )
Ejemplo n.º 4
0
 def init(self):
     self.head(self.css(), self.js())
     self.head(
         tags.Meta(name="viewport",
                   content="width=device-width, initial-scale=1"))
     self.head.title(self.page_title)
     self.navbar = NavBar(
         self._request,
         klass='navbar navbar-expand-lg navbar-dark bg-dark fixed-top')
     self.content = tags.Div(klass='container main-window')
     self.footer = tags.Footer(klass='footer footer-dark bg-dark')(
         tags.Div(klass='container')(tags.P(klass='text-muted')(
             "Created by Federico Cerchiari with ",
             tags.Img(src=self._request.static_url('app:img/brain.png'),
                      height="17px"), ", Python, Pyramid and ",
             tags.A(href='https://github.com/Hrabal/TemPy',
                    target='blank')('TemPy'),
             ". Deployed on AWS Lambda using Zappa. ",
             tags.A(href='https://github.com/Hrabal/Dobry',
                    target='blank')('Code on GitHub ',
                                    tags.I(klass='fab fa-github'))), ))
     self.body(self.navbar, self.content, self.footer)