def slug(value):
    """
    Slugify (lower case, replace spaces with dashes) a given value.
    :param value: value to be slugified
    :return: slugified value
    ex: {{ "Abc deF" | slug }} should generate abc-def
    """
    return value.lower().replace(' ', '-')