예제 #1
0
 def get(self, filename):
     with DIR.joinpath('resources', 'documents', filename).open() as f:
         text = f.read()
     self.write(text)
예제 #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)