Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created March 5, 2020 20:38
Show Gist options
  • Select an option

  • Save randyzwitch/89d1605430d74b239b2521a11587dc32 to your computer and use it in GitHub Desktop.

Select an option

Save randyzwitch/89d1605430d74b239b2521a11587dc32 to your computer and use it in GitHub Desktop.

Revisions

  1. randyzwitch created this gist Mar 5, 2020.
    21 changes: 21 additions & 0 deletions index_string.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #https://github.com/omnisci/F1-demo/blob/726c56ba4e8c878abeef81b7cf680bd4d36a4bd2/f1dash/app.py#L36-L55
    # helps load css at the footer, to avoid having default react css overwrite
    app.index_string = '''
    <!DOCTYPE html>
    <html>
    <head>
    {%metas%}
    <title>{%title%}</title>
    {%favicon%}
    </head>
    <body>
    {%app_entry%}
    <footer>
    {%config%}
    {%scripts%}
    {%renderer%}
    {%css%}
    </footer>
    </body>
    </html>
    '''