def get(self, filename): with DIR.joinpath('resources', 'documents', filename).open() as f: text = f.read() self.write(text)
def get(self, *args, **kwargs): with open(DIR.joinpath('resources', 'templates', 'html', 'index.html').__str__(), 'r') as f: html = f.read() self.write(html)