Пример #1
0
 def serve_app_page(app, page):
     return static_file('{0}.html'.format(page),
                        root=os.path.join(app_dir_dict.get(app, root_dir),
                                          'html'))
Пример #2
0
 def serve_app_static(app, filename):
     return static_file(filename,
                        root=os.path.join(app_dir_dict.get(app, root_dir),
                                          'static'))
Пример #3
0
 def serve_app_index(app):
     return static_file('index.html',
                        root=os.path.join(app_dir_dict.get(app, root_dir),
                                          'html'))
Пример #4
0
 def serve_static(filename):
     return static_file(filename, root=os.path.join(root_dir, 'static'))
Пример #5
0
 def serve_page(page):
     return static_file('{0}.html'.format(page),
                        root=os.path.join(root_dir, 'html'))
Пример #6
0
 def serve_app_page(app, page):
     return static_file('{0}.html'.format(page), root=os.path.join(app_dir_dict.get(app, root_dir), 'html'))
Пример #7
0
 def serve_app_index(app):
     return static_file('index.html', root=os.path.join(app_dir_dict.get(app, root_dir), 'html'))
Пример #8
0
 def serve_app_static(app, filename):
     return static_file(filename, root=os.path.join(app_dir_dict.get(app, root_dir), 'static'))
Пример #9
0
 def serve_page(page):
     return static_file('{0}.html'.format(page), root=os.path.join(root_dir, 'html'))
Пример #10
0
 def serve_static(filename):
     return static_file(filename, root=os.path.join(root_dir, 'static'))