@cache_forever
def admin_home_view(request):
    settings = {'authMethods': aslist(request.registry.settings.get('multiauth.policies'))}
    globalSettings = ('<script>window.globalSettings = %s;</script>' % json.dumps(settings))
    with open(os.path.join(HERE, 'build/index.html')) as f:
        return f.read().replace('<script', (globalSettings + '<script'))
@cache_forever
def admin_home_view(request):
    settings = {'authMethods': aslist(request.registry.settings.get('multiauth.policies'))}
    globalSettings = ('<script>window.globalSettings = %s;</script>' % json.dumps(settings))
    with open(os.path.join(HERE, 'build/index.html')) as f:
        return f.read().replace('<script', (globalSettings + '<script'))