wagtail/wagtail
Martin Sanders eaaeabb959 Calling block.super in extra_js and extra_css.
The specific usecase is if you'd globally like to inject css and js
then you can via django overextending `wagtailadmin/base.html`.

Why not just use the `insert_editor_js` and `insert_editor_css` hooks?

- It isn't global across the admin, only on editor pages.
- In my opinion, this stuff shouldn't be in python.

Why not overextend `wagtailadmin/admin_base.html`?

- Can't use super if you need to insert code after loading vendor libs
  like jquery, bootstrap etc but before extra_js. So you then have to
  copy-paste a ton of code from the parent - this goes against the
  open closed principle and should be avoided.

So given the current build process for front end admin/dashboard assets
in wagtail, this seems like the best solution for now.
2015-07-03 09:19:33 +01:00
..
bin Invoke django-admin through python API call rather than on the command line, to sidestep platform-specific issues with finding / launching executables - fixes #625 2014-09-25 00:13:29 +01:00
contrib Calling block.super in extra_js and extra_css. 2015-07-03 09:19:33 +01:00
project_template prepare for 1.0rc1 release 2015-06-17 17:13:19 +01:00
tests Give the test document a filename 2015-07-02 11:00:25 +01:00
utils version-bump deprecation warnings 2015-06-23 16:50:18 +01:00
wagtailadmin Calling block.super in extra_js and extra_css. 2015-07-03 09:19:33 +01:00
wagtailcore Fetch translations from transifex 2015-06-30 11:25:54 +01:00
wagtaildocs Calling block.super in extra_js and extra_css. 2015-07-03 09:19:33 +01:00
wagtailembeds Fetch translations from transifex 2015-06-30 11:25:54 +01:00
wagtailforms Calling block.super in extra_js and extra_css. 2015-07-03 09:19:33 +01:00
wagtailimages Calling block.super in extra_js and extra_css. 2015-07-03 09:19:33 +01:00
wagtailredirects Calling block.super in extra_js and extra_css. 2015-07-03 09:19:33 +01:00
wagtailsearch Calling block.super in extra_js and extra_css. 2015-07-03 09:19:33 +01:00
wagtailsites Calling block.super in extra_js and extra_css. 2015-07-03 09:19:33 +01:00
wagtailsnippets Calling block.super in extra_js and extra_css. 2015-07-03 09:19:33 +01:00
wagtailusers Calling block.super in extra_js and extra_css. 2015-07-03 09:19:33 +01:00
__init__.py Revert "Versioning changes" 2015-02-18 12:56:29 +00:00