Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move example code towards convention of global app #247

Closed
3 tasks done
jwkvam opened this issue Oct 3, 2018 · 1 comment
Closed
3 tasks done

move example code towards convention of global app #247

jwkvam opened this issue Oct 3, 2018 · 1 comment

Comments

@jwkvam
Copy link
Owner

jwkvam commented Oct 3, 2018

For dynamic layouts, the app will need to be global or at least the views will be. I would rather not confuse the matter and encourage the app to be global. As a side benefit, users can then use the listen decorator instead of the subscribe function which should be more readable. This may also allow us to be more compatible with Flask apps if someone wants to have a bowtie dashboard sitting with some other flask stuff.

  • refactor example code
  • refactor bowtie-demo
  • move server.py.j2 functionality into app.py or wherever appropriate.
@jwkvam
Copy link
Owner Author

jwkvam commented Oct 13, 2018

bowtie-demo has been updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant