def proc(request):
    """
    Place the ProctorGroups 'proc' object in every template context.

    This makes using Proctor test groups in templates very convenient.

    Dependent on the Proctor middleware.

        {{ proc.buttoncolortst.payload|default_if_none:"..." }}

        {% if proc.buttoncolortst.group == 'green' %}
    """
    return {'proc': request.proc} if hasattr(request, 'proc') else {}
