コード例 #1
0
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)
コード例 #2
0
ファイル: helpers.py プロジェクト: arunkgupta/pythonhackers
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)
コード例 #3
0
ファイル: main.py プロジェクト: AlfiyaZi/pythonhackers
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)
コード例 #4
0
ファイル: main.py プロジェクト: python-hackers/pythonhackers
def render_template(*args, **kwargs):
    kwargs.update(**{'cache_buster': cache_buster, 'user':{},'user_json':{}})
    return template_render(*args, **kwargs)