mgood/flask-debugtoolbar — pull request #60 by kopf (2013-11-13 13:08:27+00:00)
Title: Use '_external=True' to generate static_path url

With this change, instead of `static_path` being as something like `/_debug_toolbar/static/`, it's generated as `http://localhost/_debug_toolbar/static/` or `http://myserver.com/_debug_toolbar/static/` (when flask's `config['SERVER_NAME'] == 'myserver.com'`)

Motivation:
This breaks nothing and is more explicit. In work at the moment, we need to periodically save snapshots of webpages that have the flask debugtoolbar embedded in them. If they're saved and opened as flat .html files, the debugtoolbar breaks, since the browser cannot load `/_debug_toolbar/static/`. So, using a full URL instead of just a relative path fixes this, allowing the browser to load `/_debug_toolbar/static/` from the webserver from which the webpage was saved.