@register.function
def inline_css(bundle, media=False, debug=None):
    if debug is None:
        debug = getattr(settings, 'TEMPLATE_DEBUG', False)

    if debug:
        items = [_get_compiled_css_url(i)
                 for i in settings.MINIFY_BUNDLES['css'][bundle]]
    else:
        items = ['css/%s-min.css' % bundle]

    if not media:
        media = getattr(settings, 'CSS_MEDIA_DEFAULT', 'screen,projection,tv')

    contents = []
    for css in items:
        if is_external(css):
            return _build_html([css], '<link rel="stylesheet" media="%s" '
                                      'href="%%s" />' % media)
        with open(get_path(css), 'r') as f:
            contents.append(f.read())

    return _build_html(contents, '<style type="text/css" media="%s">%%s'
                                 '</style>' % media)
Parses create or delete event.
dataset/ETHPy150Open jsocol/jingo-minify/jingo_minify/helpers.py/inline_css--crossover with--dataset/ETHPy150Open zulip/zulip/zerver/views/webhooks/taiga.py/parse_create_or_delete