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

add a new toolbar config directive to inject code in the head of the toolbar #294

Open
mmerickel opened this issue May 3, 2017 · 0 comments

Comments

@mmerickel
Copy link
Member

  1. Add a config directive to the toolbar app called something like config.add_debugtoolbar_header_code which constructs a list of functions that are executed each time the toolbar.dbtmako is rendered.

  2. Move all static assets (js and css) to the <head> of the toolbar to make the order of operations here simpler.

  3. Update toolbar.dbmako to iterate the header functions and invoke them making sure to unescape the output. The functions can return things like <script ... or <link ....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant