def show_browse_page(): server = ShorthandServer(current_app.config['config_path']) toc = server.get_toc() return render_template('browse.j2', toc=json.dumps(toc), static_content=static_content)
def get_toc_data(): server = ShorthandServer(current_app.config['config_path']) return json.dumps(server.get_toc())