hundreds-camera-24900
10/23/2021, 6:39 PMsalmon-xylophone-28580
10/23/2021, 8:39 PMfresh-controller-36545
10/23/2021, 8:47 PMxapi/
where I swap out global partials.silly-bear-76516
10/25/2021, 7:48 PMsilly-bear-76516
10/25/2021, 7:50 PMhundreds-camera-24900
10/26/2021, 12:16 AMhundreds-camera-24900
10/26/2021, 12:16 AMhundreds-camera-24900
10/26/2021, 12:17 AMhundreds-camera-24900
10/26/2021, 12:18 AMhundreds-camera-24900
10/26/2021, 12:18 AMhundreds-camera-24900
10/26/2021, 12:18 AMhundreds-camera-24900
10/26/2021, 12:19 AMhundreds-camera-24900
10/26/2021, 12:20 AMhundreds-camera-24900
10/26/2021, 12:20 AMhundreds-camera-24900
10/26/2021, 12:22 AMhundreds-camera-24900
10/26/2021, 12:27 AMmysterious-toddler-20573
10/26/2021, 6:09 PMsilly-bear-76516
10/26/2021, 6:28 PMvictorious-room-74725
10/27/2021, 2:09 AMmysterious-toddler-20573
10/27/2021, 2:28 AMpowerful-ambulance-40990
10/27/2021, 9:21 AMsilly-bear-76516
10/27/2021, 7:03 PMwhite-magazine-23424
10/29/2021, 9:18 PMdjango-htmx-rest
(https://github.com/jdevries3133/django_htmx_rest) It'll
be a pretty small library, because the two already go together very nicely, but
there are a few key features:
- content negotiator that also is responsive to the Hx-Request
header
- implement a BrowsableHTMXRenderer
, which extends the DRF browsable API with frontend component development tooling, like viewport resizing, etc (think [storybook](https://storybook.js.org/))
- integrating the existing django-htmx library (https://github.com/adamchainz/django-htmx) with DRF, if there's anything to be done there (I'm not sure)
- other misc. niceties, like maybe testing support
Plus, strong documentation, to illustrate how Django + DRF + htmx can make REST
dreams come true.
I have gotten off to a very small start and hope to keep building it out to the
extent that it supports another project I'm working on primarily, but if you're
interested in the idea, it's MIT licensed and I welcome anyone who'd like to
contribute!
Any feedback on the idea is much appreciated too!
Here is the repo link if you're interested in contributing:
https://github.com/jdevries3133/django_htmx_resthundreds-camera-24900
10/29/2021, 9:21 PMwhite-magazine-23424
10/29/2021, 9:28 PMtemplate_name
kwarg to the drf Response
constructor. Then, under the hood, drf has a content negotiation process which this library could hook into for determining what actually gets rendered based on the content_type and presence/absence of htmx headershundreds-camera-24900
10/29/2021, 9:29 PMhundreds-camera-24900
10/29/2021, 9:29 PMwhite-magazine-23424
10/29/2021, 9:29 PMHx-Request
headerhundreds-camera-24900
10/29/2021, 9:29 PMwhite-magazine-23424
10/29/2021, 9:29 PM