From 4f53677dded4f9ba60e7f72aac1a33263081b40d Mon Sep 17 00:00:00 2001 From: Wm Talcott <32972881+codetalcott@users.noreply.github.com> Date: Sun, 25 Jun 2023 13:36:17 -0400 Subject: [PATCH] minor edits. ds_store...? --- .DS_Store | Bin 0 -> 6148 bytes book/CH03_BuildingASimpleWebApplication.adoc | 2 +- book/CH05_htmxPatterns.adoc | 6 +++--- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 .DS_Store diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..0df3fb6666601fbbdaca0779de300e2485a48294 GIT binary patch literal 6148 zcmeHK!Ait15S`Hq1uuK_B*8z}KgcfiE-ZNPB;A67U9up1&!6nq_#6I(h!^oqW?Wh< z-V~9UlDx@GX3{)p(jg*V?z%bAjEHJ9K^A2~#60ObvdJevmK@#Vx^GkJCzAYCle~LH zEhRh;!}mWJ`@8vSoi^LDgV*QtVZbIeP1~myw)*CMfBkatv>5xlZ~fc*LGHJ!vV?ce zfHU9>I0MeW&oY2JTckc!^xhe82AqKd19CnDG{IFUv zB0Lb*P@smgl^Cqyum_tL4YQ(#6I=1Yw(@83!ew>j4`n)WRP^2%a0bQ<9P4l<_x~k6 znaLu59O5Hqz!~^w3~<$~nk6=6ck7q!$z2=JZqYg WtSDK;Uc!O?BTxwO&KdXx20j2gY%#z9 literal 0 HcmV?d00001 diff --git a/book/CH03_BuildingASimpleWebApplication.adoc b/book/CH03_BuildingASimpleWebApplication.adoc index 26e030b..6cfc23a 100644 --- a/book/CH03_BuildingASimpleWebApplication.adoc +++ b/book/CH03_BuildingASimpleWebApplication.adoc @@ -597,7 +597,7 @@ important to understand the overarching idea of _resources_ and _hypermedia repr getting worked up about the smaller details of your URL design. We recommend you just pick a reasonable, resource-oriented URL layout you like and then stay consistent. Remember, -in a hypermedia system, you can always change your end-points later, because you are using hypermedia as the engine +in a hypermedia system, you can always change your endpoints later, because you are using hypermedia as the engine of application state! **** diff --git a/book/CH05_htmxPatterns.adoc b/book/CH05_htmxPatterns.adoc index 9f6c7b6..326cec1 100644 --- a/book/CH05_htmxPatterns.adoc +++ b/book/CH05_htmxPatterns.adoc @@ -296,7 +296,7 @@ transferring HTML. Thankfully, now, with htmx, we have a chance to rectify this situation. -The "`right thing`", from a RESTful, resource oriented perspective is, rather than issuing an HTTP `POST` to +The "`right thing,`" from a RESTful, resource-oriented perspective is, rather than issuing an HTTP `POST` to `/contacts/42/delete`, to issue an HTTP `DELETE` to `/contacts/42`. We want to delete the contact. The contact is a resource. The URL for that resource is `/contacts/42`. So the ideal is a `DELETE` request to `/contacts/42/`. @@ -767,8 +767,8 @@ Well, no. It turns out that you can implement this functionality in htmx, using pure HTML attributes. -((hx-trigger, change)) -((hx-trigger, keyup)) +(((hx-trigger, change))) +(((hx-trigger, keyup))) (((event, change))) (((event, keyup))) In fact, all we need to do is to change our trigger. Currently, we are using the default trigger for inputs, which is the