From 89c9af52d6804de58826469839d42fba9e859386 Mon Sep 17 00:00:00 2001 From: carson Date: Sat, 20 Jun 2020 20:07:07 -0700 Subject: [PATCH] docs updates --- www/docs.md | 6 +----- www/index.md | 2 ++ 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/www/docs.md b/www/docs.md index 2368cd21..89189f3b 100644 --- a/www/docs.md +++ b/www/docs.md @@ -75,7 +75,7 @@ within the language: * Now any [HTTP verb](https://en.wikipedia.org/wiki/HTTP_Verbs), not just `GET` and `POST`, can be used * Now any element, not just the entire window, can be the target for update by the request -Note that when you are using htmx, on the server side you respond with *HTML*, not *JSON*. This keeps you firmly +Note that when you are using htmx, on the server side you typically respond with *HTML*, not *JSON*. This keeps you firmly within the [original web programming model](https://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm), using [Hypertext As The Engine Of Application State](https://en.wikipedia.org/wiki/HATEOAS) without even needing to really understand that concept. @@ -110,9 +110,6 @@ The core of htmx is a set of attributes that allow you to issue AJAX requests di | [hx-delete](/attributes/hx-delete) | Issues a `DELETE` request to the given URL -Since most browsers only support issuing `GET` and `POST`, a request with one of the other three methods will -actually be issued as a `POST`, with the `X-HTTP-Method-Override` header set to the desired method. - Each of these attributes takes a URL to issue an AJAX request to. The element will issue a request of the specified type to the given URL when the element is [triggered](#triggers): @@ -472,7 +469,6 @@ htmx includes a number of useful headers in requests: | `HX-Active-Element` | the id of the current active element | `HX-Active-Element-Name` | the name of the current active element | `HX-Active-Element-Value` | the value of the current active element -| `X-HTTP-Method-Override` | the HTTP verb for non-`GET` and `POST` requests ### [Response Headers](#response-headers) diff --git a/www/index.md b/www/index.md index bbf9a22d..3d4c2192 100644 --- a/www/index.md +++ b/www/index.md @@ -39,6 +39,8 @@ The [`hx-post`](https://htmx.org/attributes/hx-post) and [`hx-swap`](https://htm htmx is the successor to [intercooler.js](http://intercoolerjs.org) +Read the [docs introduction](/docs#introduction) for a more in-depth... introduction. + ## haiku *javascript fatigue: