def assign_default(context, var_name, default):
    """
    Sets default value to variable if one does not exist.
    """
    if var_name not in context:
        context[var_name] = default
    return ''