

def render_css(self, package, path):
    template_name = (package.template_name or 'pipeline/css.jinja')
    context = package.extra_context
    context.update({
        'type': guess_type(path, 'text/css'),
        'url': staticfiles_storage.url(path),
    })
    template = self.environment.get_template(template_name)
    return template.render(context)

dataset/ETHPy150Open jazzband/django-pipeline/pipeline/jinja2/__init__.py PipelineExtension.render_css/original