Y
Hacker News
new
|
ask
|
show
|
jobs
by
weberc2
3334 days ago
Flask lets you share state between requests; just have the route methods reference some global variable. You could also apply the route decorator to an instance method (although probably not using the decorator syntax).