def render_js(self, package, path):
        template_name = package.template_name or "pipeline/js.jinja"
        context = package.extra_context
        context.update({
            'type': guess_type(path, 'text/javascript'),
            '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_js/original