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']}
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}
def platform_css(context, view): files = get_platform_css(view) return {'files': files, 'STATIC_URL': context['STATIC_URL']}
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']}