

def _parse_another_template_file(self, path):
    path = os.path.join(self.base_dir, path)
    _hash = str(hash(path)).replace('-', '_').replace('.', '_')
    func_name = (self.func_name + _hash)
    result_var = (self.result_var + _hash)
    with open(path, encoding='utf-8') as f:
        _template = self.__class__(f.read(), default_context=self.default_context, pre_compile=False, indent=self.code_builder.indent_level, template_dir=self.base_dir, auto_escape=self.auto_escape, func_name=func_name, result_var=result_var)
        return _template

dataset/ETHPy150Open mozillazg/bustard/bustard/template.py Template._parse_another_template_file/original