예제 #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'))