def Render(self): render = Link.Render(self) props = {'id': self.id, 'icon': self.icon, 'link': render.html} render.html = formater(LINK_ICON_HTML, props) return render
def Render(self): render = Container.Render(self) props = {'id': self.id, 'href': self.href, 'content': render.html} render.html = formater(LINK_HTML, props) return render
def Render (self): render = Link.Render (self) props = {'id': self.id, 'icon': self.icon, 'link': render.html} render.html = formater (LINK_ICON_HTML, props) return render
def Render (self): render = Container.Render (self) props = {'id': self.id, 'href': self.href, 'content': render.html} render.html = formater (LINK_HTML, props) return render
def Render(self): content = self._content_get() while True: prev = content[:] content = formater(content, self.vars) if content == prev: break # Get rid of %%s return content % ({})
def Render (self): content = self._content_get() while True: prev = content[:] content = formater (content, self.vars) if content == prev: break # Get rid of %%s return content %({})
def Render(self): # Get the content render render = Container.Render(self) # Build the <head> text self._headers += render.headers if self.js_header_end: head = "\n".join (filter (lambda l: not '<script' in l, uniq(self._headers))) else: head = "\n".join (uniq(self._headers)) # Helps all_helps = self._helps all_helps += render.helps render_helps = HelpMenu(all_helps).Render().html # Javascript js = '' if self.js_header_end: js += "\n".join (filter (lambda l: '<script' in l, uniq(self._headers))) if render.js: js += formater (HTML_JS_ON_READY_BLOCK, render.js) # Build the <body> body = render.html + render_helps if render.js: body += js # Set up the template self._template['head'] = head self._template['html'] = render.html self._template['js'] = js self._template['body'] = body self._template['helps'] = render_helps if not self._template['body_props']: self._template['body_props'] = '' txt = self._template.Render() return Postprocess (txt)