mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-15 10:43:15 +00:00
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. |
||
|---|---|---|
| .. | ||
| bin | ||
| contrib | ||
| project_template | ||
| tests | ||
| utils | ||
| wagtailadmin | ||
| wagtailcore | ||
| wagtaildocs | ||
| wagtailembeds | ||
| wagtailforms | ||
| wagtailimages | ||
| wagtailredirects | ||
| wagtailsearch | ||
| wagtailsites | ||
| wagtailsnippets | ||
| wagtailusers | ||
| __init__.py | ||