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