mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-28 13:31:06 +00:00
Merge remote-tracking branch 'origin/master' into dev
This commit is contained in:
commit
06d9f72f97
@ -3,7 +3,7 @@ Thank you for your interest in contributing! Because we're a small team, we have
|
||||
|
||||
## Issues
|
||||
1. Issues are the best place to propose a new feature. Keep in mind that htmx is a small library, so there are lots of great ideas that don't fit in the core; it's always best to check in about an idea before doing a bunch of work on it.
|
||||
1. When proposing a new features, we will often suggest that you implement it as an [extension](https://htmx.org/extensions), so try that first. Even if we don't end up supporting it officially, you can publish it yourself and we can link to it.
|
||||
1. When proposing a new features, we will often suggest that you implement it as an [extension](https://github.com/bigskysoftware/htmx-extensions), so try that first. Even if we don't end up supporting it officially, you can publish it yourself and we can link to it.
|
||||
1. Search the issues before proposing a feature to see if it is already under discussion. Referencing existing issues is a good way to increase the priority of your own.
|
||||
1. We don't have an issue template yet, but the more detailed your description of the issue, the more quickly we'll be able to evaluate it.
|
||||
1. See an issue that you also have? Give it a reaction (and comment, if you have something to add). We note that!
|
||||
|
@ -137,7 +137,7 @@ While the CDN approach is extremely simple, you may want to consider
|
||||
|
||||
The next easiest way to install htmx is to simply copy it into your project.
|
||||
|
||||
Download `htmx.min.js` [from unpkg.com](https://unpkg.com/htmx.org/dist/htmx.min.js) and add it to the appropriate directory in your project
|
||||
Download `htmx.min.js` [from unpkg.com](https://unpkg.com/htmx.org@2.0.1/dist/htmx.min.js) and add it to the appropriate directory in your project
|
||||
and include it where necessary with a `<script>` tag:
|
||||
|
||||
```html
|
||||
@ -973,6 +973,12 @@ Using the [meta config](#configuration-options) mechanism for configuring respon
|
||||
config:
|
||||
|
||||
```html
|
||||
<!--
|
||||
* 204 No Content by default does nothing, but is not an error
|
||||
* 2xx, 3xx and 422 responses are non-errors and are swapped
|
||||
* 4xx & 5xx responses are not swapped and are errors
|
||||
* all other responses are swapped using "..." as a catch-all
|
||||
-->
|
||||
<meta
|
||||
name="htmx-config"
|
||||
content='{
|
||||
@ -980,7 +986,8 @@ config:
|
||||
{"code":"204", "swap": false},
|
||||
{"code":"[23]..", "swap": true},
|
||||
{"code":"422", "swap": true},
|
||||
{"code":"[45]..", "swap": false, "error":true}
|
||||
{"code":"[45]..", "swap": false, "error":true},
|
||||
{"code":"...", "swap": true}
|
||||
]
|
||||
}'
|
||||
/>
|
||||
|
@ -42,7 +42,7 @@ to add new contacts to the table using [hx-post](@/attributes/hx-post.md).
|
||||
The problem here is that when you submit a new contact in the form, you want the contact table above to refresh and
|
||||
include the contact that was just added by the form.
|
||||
|
||||
What solutions to we have?
|
||||
What solutions do we have?
|
||||
|
||||
## Solution 1: Expand the Target {#expand}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user