荧光屏-导航 允许 动态建筑 但是,我不知道如何从传递一个字典或列表到函数来建立导航条来做到这一点。
@nav.navigation
def top_nav():
# ...
根据文档,每次需要使用Navbar时都会调用这个;但是,你可以做top_nav(items)之类的事情。
In my Jinja2 templates, I create a dictionary with my submenu for that page (which I want to do as a side menu along with the top fixed navbar). I know it can be done in a way with macros but I was curious if there was a way to use 荧光屏-导航to create the secondary Navbar with dynamically passed items.