You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/01/07 22:06:27 UTC

[GitHub] [superset] nytai commented on a change in pull request #12315: feat: provide config to insert html tags in every view

nytai commented on a change in pull request #12315:
URL: https://github.com/apache/superset/pull/12315#discussion_r553618148



##########
File path: superset/views/base.py
##########
@@ -333,6 +342,14 @@ def serialize_bootstrap_data() -> str:
     return {"bootstrap_data": serialize_bootstrap_data}
 
 
+@superset_app.context_processor
+def get_html_template_script() -> Dict[str, Any]:
+    def process_template_script() -> str:
+        return render_template_string(superset_app.config["HTML_TEMPLATE_SCRIPT"])

Review comment:
       unfortunately we're not going with this route (see discussion bellow), though your suggestion would definitely make sense for the current approach. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org