def get_contents(self, origin):
        try:
            with io.open(origin.name, encoding=self.engine.file_charset) as fp:
                return fp.read()
        except IOError as e:
            if e.errno == errno.ENOENT:
                raise TemplateDoesNotExist(origin)
            raise
Returns the contents of template at origin.
dataset/ETHPy150Open tethysplatform/tethys/tethys_apps/template_loaders.py/TethysAppsTemplateLoader.get_contents