def create_crumb(title, url=None, active=False):
    """
    Helper function that creates breadcrumb.
    """
    active_str = ""
    if active:
        active_str = ' class="active"'

    inner_str = "%s" % title
    if url:
        inner_str = '<a href="%s">%s</a>' % (url, title)

    crumb = "<li%s>%s</li>" % (active_str, inner_str)

    return crumb