

def render_template(template, mimetype=None, login_required=True, config_required=False):

    def renderer(request, *args, **kwargs):
        return render_to_response(template, kwargs, context_instance=RequestContext(request))
    action = renderer
    if (login_required or config_required):
        action = require_login(action)
    if config_required:
        action = require_config(action)
    return action

dataset/ETHPy150Open splunk/splunk-webframework/server/splunkdj/utility/views.py render_template/original