def create_crumb(title, url=None):
    """
    Helper function
    """

    if url:
        crumb = '<span class="breadcrumb-separator">/</span><a class="breadcrumb-item" href="%s">%s</a>' % (url, title)
    else:
        crumb = '<span class="breadcrumb-separator">/</span><span class="breadcrumb-item">%s</span>' % (title, )

    return crumb
dataset/ETHPy150Open buildingenergy/buildingenergy-platform/seed/templatetags/breadcrumbs.py/create_crumb/original