diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..0df3fb6 Binary files /dev/null and b/.DS_Store differ 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