@register.function
@jinja2.contextfunction
def hub_page_title(context, title=None, addon=None):
 if addon:
  title = (u'%s | %s' % (title, addon.name))
 else:
  devhub = _('Developers')
  title = (('%s | %s' % (title, devhub)) if title else devhub)
 return page_title(context, title)

@ register . function @ jinja2 . contextfunction def hub_page_title ( context , title = None , addon = None ) : if addon : title = ( u'%s | %s' % ( title , addon . name ) ) else : devhub = _ ( 'Developers' ) title = ( ( '%s | %s' % ( title , devhub ) ) if title else devhub ) return page_title ( context , title )
wrapper for developer page titles .