def parse(self, parser):

        # update configs
        configs = self.compressor.get_configs_from_environment(self.environment)
        self.compressor.config.update(**configs)

        lineno = next(parser.stream).lineno
        args = [parser.parse_expression()]
        body = parser.parse_statements(['name:endcompress'], drop_needle=True)

        if len(body) > 1:
            raise RuntimeError('Template tags not supported inside compress blocks.')

        if hasattr(self.environment, 'compressor_offline_compress') and self.environment.compressor_offline_compress:
            return nodes.CallBlock(self.call_method('_display_block', args), [], [], body).set_lineno(lineno)
        else:
            return nodes.CallBlock(self.call_method('_compress_block', args), [], [], body).set_lineno(lineno)
dataset/ETHPy150Open jaysonsantos/jinja-assets-compressor/jac/extension.py/CompressorExtension.parse/original