Example #1
0
 def render(self, context):
     return html.buildtag(
         "li",
         html.buildtag("span", self.span_label(context), **self.span_attrs(context))
         + html.hyperlink(self.url(context), self.label(context), **self.a_attrs(context)),
         **{"class": "item"}
     )
 def render(self, context):
     return html.buildtag('li', self.label, **{'class': 'separator'}) + "".join([
         item.render(context) for item in self if item.can_render(context)
     ])
 def render(self, context):
     return html.buildtag('li',
         html.buildtag('span', self.span_label(context), **self.span_attrs(context)) + \
         html.hyperlink(self.url(context), self.label(context), **self.a_attrs(context)),
         **{'class': 'item'})
Example #4
0
 def render(self, context):
     return html.buildtag("li", self.label, **{"class": "separator"}) + "".join(
         [item.render(context) for item in self if item.can_render(context)]
     )