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'))
def serve_app_static(app, filename): return static_file(filename, root=os.path.join(app_dir_dict.get(app, root_dir), 'static'))
def serve_app_index(app): return static_file('index.html', root=os.path.join(app_dir_dict.get(app, root_dir), 'html'))
def serve_static(filename): return static_file(filename, root=os.path.join(root_dir, 'static'))
def serve_page(page): return static_file('{0}.html'.format(page), root=os.path.join(root_dir, 'html'))