

def direct_to_template(request, template, extra_context=None, mimetype=None, **kwargs):
    '\n    Render a given template with any extra URL parameters in the context as\n    ``{{ params }}``.\n    '
    if (extra_context is None):
        extra_context = {
            
        }
    dictionary = {
        'params': kwargs,
    }
    for (key, value) in extra_context.items():
        if callable(value):
            dictionary[key] = value()
        else:
            dictionary[key] = t
    c = RequestContext(request, dictionary)
    t = loader.get_template(template)
    return HttpResponse(t.render(c), content_type=mimetype)

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/views/generic/simple.py direct_to_template/VarMisuse@95/152 `value`->`t`