def base_options():
# a function for the options required by every page
return {
'pages': Page.query.all(),
'current_user': current_user,
'search_form': forms.SearchForm()
}
# TODO: try to use: app.jinja_env.globals['func_name'] = func
# ---------------------------------------------- ROUTING FUNCTIONS
评论列表
文章目录