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

mounting and getting the bower object #6

Open
faassen opened this issue Nov 24, 2014 · 0 comments
Open

mounting and getting the bower object #6

faassen opened this issue Nov 24, 2014 · 0 comments
Labels

Comments

@faassen
Copy link
Member

faassen commented Nov 24, 2014

When you have a root app and an app mounted in it, and the root app derives from the StaticApp, and the app mounted in it uses the static_components directive, more.static will fail to include things. The problem is that the root app tries to get the bower object through the components registered with static_components, but nothing is registered, and thus nothing happens. We didn't have this problem when we used the WSGI-based bower.wrap(), as this included the information on which bower object to use.

One workaround is to set a 'bower' class-level variable on the root app to the bower object used. But this requires a global. Another workaround would be to define a static_components for the root using the same bower as the sub-apps use.

None of these are really nice. We need to think of something better.

@faassen faassen added the bug label Nov 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant