def none(value, nonchar=''):
    """Converts ``None`` to ``''``.

    Similar to ``|default('', true)`` in jinja2 but more explicit.
    """
    if value is None:
        return nonchar
    return value