def render(self, tool):
        content = self.content
        if isinstance(content, (list, tuple)):
            content = "\n".join(content)
        ctx = dict(tool.options.to_dict(raw=True))
        ctx['tool'] = tool
        ctx['__file__'] = tool.path
        ctx['args'] = tool.options.to_dict()
        ctx['options'] = tool.options.to_cmd
        return render_template(content, **ctx)
Renders this blocks content within the context of the given tool
dataset/ETHPy150Open thasso/pyjip/jip/tools.py/Block.render