ripe-action-67367
03/09/2023, 2:40 PMhtml
<div id="outer">
<div id="inner"></div>
</div>
basically, you can set hx-select="#inner" and htmx will find it in the body and trim out #outerripe-action-67367
03/09/2023, 2:41 PMripe-action-67367
03/09/2023, 2:43 PMapi/v1/posts
or somethingshy-knife-59740
03/09/2023, 2:52 PMshy-knife-59740
03/09/2023, 2:53 PMshy-knife-59740
03/09/2023, 2:53 PMripe-action-67367
03/09/2023, 2:54 PMripe-action-67367
03/09/2023, 2:54 PMshy-knife-59740
03/09/2023, 2:56 PMsome-airline-73512
03/09/2023, 4:18 PMsome-airline-73512
03/09/2023, 4:20 PMsome-airline-73512
03/09/2023, 4:23 PMhappy-knife-63802
03/09/2023, 10:37 PMhappy-knife-63802
03/09/2023, 10:41 PMshy-knife-59740
03/09/2023, 10:41 PMshy-knife-59740
03/09/2023, 10:41 PMhappy-knife-63802
03/09/2023, 10:41 PMshy-knife-59740
03/09/2023, 10:43 PMhappy-knife-63802
03/09/2023, 10:45 PMlimited-teacher-83117
03/10/2023, 3:03 AMgorgeous-ghost-95789
03/10/2023, 3:04 AMlimited-teacher-83117
03/10/2023, 3:05 AMhx-trigger=load
that would load the main content of the app. I forgot that one of the pages still operated that way when I switched it over to the template, so it just kept calling itselflimited-teacher-83117
03/10/2023, 3:06 AMhundreds-cartoon-20446
03/10/2023, 12:32 PMhx-history-preserve
extension to be a little more robust. It now also caches the original markup of any fragments swapped into the current page (not just full pages with an hx-history-elt
element), and restores them to a pristine state before the page is saved to the history cache. That can be extremely useful when you need to (re)initialise javascript behaviour attached to dom elements on browser back/forward navigation. https://gist.github.com/croxton/e2c33bd22591f9a5bd8c9d23a56c9edcwonderful-article-82635
03/10/2023, 2:27 PM<div>value gets put here</div>
<ul>
<li>one</li>
<li>two</li>
</ul>
gentle-salesclerk-37089
03/10/2023, 2:32 PMgentle-salesclerk-37089
03/10/2023, 2:32 PMwonderful-article-82635
03/10/2023, 2:49 PMgentle-salesclerk-37089
03/10/2023, 2:50 PMbig-airline-13935
03/10/2023, 4:02 PM