def render_template(*args, **kwargs): """ Render template for anonymous access with cache_buster,PROD settings, used for caching """ kwargs.update( **{ 'cache_buster': cache_buster, 'user': {}, 'user_json': {}, 'PROD': PRODUCTION }) return template_render(*args, **kwargs)
def render_template(*args, **kwargs): """ Render template for anonymous access with cache_buster,PROD settings, used for caching """ params = { 'cache_buster': cache_buster, 'user': {}, 'user_json': {}, 'PROD': PRODUCTION, 'static_route': 'http://cdn1.pythonhackers.com' } params.update(**kwargs) return template_render(*args, **params)
def render_template(*args, **kwargs): """ Render template for anonymous access with cache_buster,PROD settings, used for caching """ kwargs.update(**{'cache_buster': cache_buster, 'user': {}, 'user_json': {}, 'PROD': PRODUCTION}) return template_render(*args, **kwargs)
def render_template(*args, **kwargs): kwargs.update(**{'cache_buster': cache_buster, 'user':{},'user_json':{}}) return template_render(*args, **kwargs)