Ledger: bundle htmx into main.js #43
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Augspies/virtual-attorney#43
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of: Ledger Redesign — spec §7 · final approach: django-htmx's
{% htmx_script %}static include (same pattern as the expatgibs project — htmx served as a vendored static file, no npm package, no bundler)Goal: Make htmx available site-wide via the django-htmx template tag.
Files:
virtual_attorney/templates/base.html,virtual_attorney/settings/base.pyAcceptance:
{% load django_htmx %}+{% htmx_script %}inbase.htmlhead, beforemain.jsdjango_htmxadded to INSTALLED_APPS (the tag library requires it — the middleware alone was already installed)main.jsbundle (Alpine only, 111k) — the earlierhtmx.orgnpm/bundle approach was revertedhtmx.min.js+django-htmx.jsstatic files serve 200 under/static/django_htmx/collectstaticpicks up the django_htmx static files in the deploy image (verify on staging)Notes:
django_htmxmiddleware +{% htmx_script %}are the expatgibs-proven pattern. Verified end-to-end on the local dev server.