Skip to content

Commit

Permalink
added blueprint to baseframe-assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibhas committed Nov 13, 2019
1 parent bd58ed0 commit 09eb848
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions baseframe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,12 @@ def init_app(
app.assets.register('css_all', css_all)
app.register_blueprint(self, static_subdomain=subdomain)

try:
module = __import__('baseframe-assets')
app.register_blueprint(module.blueprint)
except ImportError:
pass

# Optional config for a client app to use a manifest file
# to load fingerprinted assets
# If used with webpack, the client app is expected to specify its own webpack.config.js
Expand Down

0 comments on commit 09eb848

Please sign in to comment.