def jsinclude(self, translator, node, *args, **kwargs):
        if len(node.args) != 1:
            raise TranslationError(
                "jsinclude function requires one argument",
                node.node)
        if (     isinstance(node.args[0], translator.ast.Const)
             and isinstance(node.args[0].value, str)
           ):
            try:
                data = open(node.args[0].value, 'r').read()
            except __HOLE__, e:
                raise TranslationError(
                    "Cannot include file '%s': %s" % (node.args[0].value, e), node.node)
            translator.ignore_debug = True
            return data, False
        else:
            raise TranslationError(
                "jsinclude function only supports constant strings",
                node.node)
dataset/ETHPy150Open anandology/pyjamas/pyjs/src/pyjs/translator_proto.py/__Pyjamas__.jsinclude