예제 #1
0
def platform_css(context, view):
    files = [{
        'path': filename,
        'type': 'text/css' if filename.endswith('.css') else 'text/x-scss'
    } for filename in get_platform_css(view)]

    return {'files': files, 'STATIC_URL': context['STATIC_URL']}
예제 #2
0
def platform_css(context, view):

    theme = context.get('THEME', get_active_theme_name())
    prefix = 'theme/%s/' % theme
    files = [{'path': prefix + filename, 'type': 'text/css' if filename.endswith('.css') else 'text/x-scss'} for filename in get_platform_css(view)]

    return {'files': files}
예제 #3
0
def platform_css(context, view):
    files = get_platform_css(view)

    return {'files': files, 'STATIC_URL': context['STATIC_URL']}
예제 #4
0
def platform_css(context, view):
    files = [{'path': filename, 'type': 'text/css' if filename.endswith('.css') else 'text/x-scss'} for filename in get_platform_css(view)]

    return {'files': files, 'STATIC_URL': context['STATIC_URL']}