def init(self, title=None, style=None, **body): self.html = E.html(E.head(), E.body(E.div(), **body)) self.html.body.div.set('class', 'container') if title: self.html.head.append(E.title(title)) if style: self.html.head.append(E.style(style, type='text/css'))