

def parse(self, parser):
    tag = next(parser.stream)
    package_name = tag.parse_expression()
    if (not package_name):
        raise TemplateSyntaxError('Bad package name', tag.lineno)
    args = [package_name]
    if (tag.value == 'stylesheet'):
        return nodes.CallBlock(self.call_method('package_css', args), [], [], []).set_lineno(tag.lineno)
    if (tag.value == 'javascript'):
        return nodes.CallBlock(self.call_method('package_js', args), [], [], []).set_lineno(tag.lineno)
    return []

dataset/ETHPy150Open jazzband/django-pipeline/pipeline/jinja2/__init__.py PipelineExtension.parse/VarMisuse@23/26 `parser`->`tag`