flask-navigation icon indicating copy to clipboard operation
flask-navigation copied to clipboard

hard-coded global

Open noah opened this issue 8 years ago • 0 comments

This line of code:

https://github.com/tonyseek/flask-navigation/blob/develop/flask_navigation/api.py#L48

Means that if you name the navigation object something other than nav it won't work. Similarly, you are limited to only one navigation instance per site.

Specifically, this will work:

nav = Navigation(app)

This will not:

foo = Navigation(app)

This name should probably be configurable. Maybe Navigation(app, instance_id=...)?

noah avatar May 13 '16 02:05 noah