def cache_badge(request, context, _template=
    'html5_appcache/templatetags/icon.html'):
    """
    Renders the cache badge template
    """
    from django.template import RequestContext
    from django.template.loader import render_to_string
    template_context = RequestContext(request, context)
    return render_to_string(_template, context_instance=template_context)
