This starter integrates individual dash apps into a global layout provided by Flask/Jinja templates. This is achieved by overriding the interpolate_in

tzelleke / flask-dash-app

submited by
Style Pass
2021-07-30 14:00:06

This starter integrates individual dash apps into a global layout provided by Flask/Jinja templates. This is achieved by overriding the interpolate_index method from the core Dash class.

Note: markupsafe.Markup is used to prevent Jinja from escaping the Dash-rendered markup. Note: config is mapped to dash_config to avoid shadowing the global Flask config in the Jinja environment.

The corresponding Jinja template in app/templates/dash.html extends the base template and injects the provided markup via Jinja template blocks.

Leave a Comment
Related Posts