1175 Commits

Author SHA1 Message Date
Ben Croker
cdc494d7b7
Consistent lower case 2022-05-01 12:23:57 +02:00
Ben Croker
96a3f45b59
Added heading for clarity 2022-04-29 21:39:03 +02:00
Ben Croker
4f3bb039b3
Removed hard-coded number 2022-04-29 21:36:59 +02:00
Ben Pate
70f081318f Update reference.md
- fixed broken link to hx-vars and added a comment that this attribute has been deprecated
- removed a trailing space to make my markdown linter happy
2022-04-18 16:49:45 -06:00
David Guillot
be85c2c191
feat(ext): add disable-element extension (#869)
* feat(ext): add disable-element extension

* fixup! feat(ext): add disable-element extension
2022-04-08 13:13:03 -06:00
carson
0e69b6d064 Merge remote-tracking branch 'origin/dev' into dev 2022-04-07 13:50:07 -06:00
carson
74f520cf8b bump for next version of htmx 2022-04-07 13:49:57 -06:00
Ben Beecher
42db6210d6
Update hx-push.md (#838) 2022-04-07 13:42:04 -06:00
msladecek
9dfc713191
fix links to web-sockets extension page (#841) 2022-04-07 13:41:20 -06:00
Jonathan Berger
75043b2ae1
Fix broken response headers links (#843) 2022-04-07 13:40:54 -06:00
Adam Johnson
0b52a8c6a3
Update installation instructions (#851)
As per #800.

* Recommend downloading htmx as the main way of installing it.
* Cover npm installation in a bit more detail.
* Note the downsides of unpkg.com and always recommend with the integrity SHA.
* Use `<script defer>` in all `<script>` examples. This tells the browser to defer the parsing and processing of the script until all content is on display, increasing performance. [See HTML spec diagram](https://html.spec.whatwg.org/multipage/scripting.html#attr-script-defer).
2022-04-07 13:40:37 -06:00
snan
904d5e12a9
Remove double period (#852)
One sentence ended like this..
2022-04-07 13:38:24 -06:00
Adam Johnson
ee5c96b399
Improve HX-Push and hx-push-url documentation (#853)
Expand descriptions, remove duplicate information on HX-Push, and add relevant links to MDN and `hx-history-elt`.
2022-04-07 13:38:00 -06:00
James Gardiner
b8c7f63feb
Fix typo in hypermedia-apis-vs-data-apis.md (#855) 2022-04-07 13:37:34 -06:00
Michael Salihi
1ebfbb8df9
Add Clojure babashka link (#856) 2022-04-07 13:37:15 -06:00
Ruben Nielsen
78940dae3e
Add missing header (#861)
oob-swap wasn't in the headers, making it hard to find, and incidentally a pretty important feature.
2022-04-07 13:36:51 -06:00
Denis Palashevskii
70b4ad16f0
Add data-loading-aria-busy directive for loading-states extension (#864)
* Add data-loading-aria-busy directive for loading-states extension; add tests for the extension

* Update docs

* Fix tests of scoped loading states

* Commit test files

* Improve delay tests by using sinon timer

* Add reference to MDN about `aria-busy` attribute
2022-04-07 13:34:41 -06:00
Deniz Akşimşek
4e4cdf0fee
Update locality-of-behaviour.md (#865) 2022-04-07 13:33:39 -06:00
YesSeri
02d16540a7
Removed two links that don't work (#868)
thank you!
2022-04-07 13:33:05 -06:00
Adam Johnson
d129a3dc10
Rewrite scheme-relative URL’s to https (#870)
Scheme-relative URL’s were invented when HTTPS was slow, so HTTP pages could load resources insecurely, but a little faster. There’s no need to use them now as HTTPS is fast, and everything should be secure.
2022-04-07 13:30:43 -06:00
Adam Johnson
3ddf162d78
Document outerHTML limitation on <body> (#871)
Fixes #790.
2022-04-07 13:30:03 -06:00
Ben Croker
a5a290809c
Simplify htmx.trigger example 2022-03-28 11:25:00 +01:00
carson
9e3d33f90d fix link 2022-03-02 10:18:18 -07:00
carson
2e341fe6d6 Merge remote-tracking branch 'origin/master' 2022-03-02 08:55:02 -07:00
carson
7777452d28 fix integrity sha 2022-03-02 08:52:04 -07:00
Ben Croker
863f20e5f5
Improved alpine-morph description 2022-03-01 11:00:45 +00:00
Ben Croker
9081545706
Added the word "extension" 2022-03-01 10:47:11 +00:00
Ben Croker
69d26f9f4f
Moved hx-swap into correct position 2022-03-01 10:29:49 +00:00
Ben Croker
1df8b2dc8c
Moved hx-disinherit into correct position 2022-03-01 10:28:39 +00:00
carson
b4c83ca811 fix integrity sha 2022-02-24 16:10:44 -07:00
carson
d9f067fbfc narrow example 2022-02-23 14:10:06 -07:00
carson
93a99afea7 update website 2022-02-22 06:24:01 -07:00
carson
15ed75e627 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	package-lock.json
2022-02-22 06:22:11 -07:00
carson
e2944595a3 final release 2022-02-22 06:10:19 -07:00
carson
bad8995f59 release docs 2022-02-19 14:23:46 -07:00
carson
0f7f93f1f9 release prep 2022-02-19 14:18:13 -07:00
carson
c8022707bf Merge branch 'demo' into dev 2022-02-19 14:16:58 -07:00
carson
c55b8c052d update docs 2022-02-19 12:23:11 -07:00
carson
3d93251acd improve demo code:
* load htmx and hyperscript after mock-request, so you can use `init` and `load` correctly
* disable all disableable elements while the demo environment is loading
* support a `delay` attribute on templates to specify a delay
* merged @dz4k's excellent simplification to the eval code
2022-02-19 12:20:48 -07:00
carson
f7a51bdc66 Merge branch 'pull/830' into demo 2022-02-19 11:43:05 -07:00
Deniz Akşimşek
cf0a1a3a3f
interpolate: escape backticks 2022-02-19 16:26:43 +03:00
Alejandro Schmeichler
4edeae9fe5
Make posted data available to template tag. (#835)
Demo code:

```html
<form hx-post="/form?token=123" hx-target="#result">
    <input name="name" value="John Smith" />
    <select name="role">
        <option selected value="admin">Admin</option>
        <option selected value="author">Author</option>
        <option selected value="guest">Guest</option>
    </select>
    <button type="submit">Submit</button> 
</form>

<output id="result"></output>

<template url="/form">
    <div>${JSON.stringify(params)}</div>
</template>
```
2022-02-18 11:41:13 -07:00
carson
c33d5ba277 finishing touches 2022-02-17 16:25:54 -07:00
carson
a687383440 Merge remote-tracking branch 'origin/dev' into dev 2022-02-17 16:04:31 -07:00
carson
fec8802c3b Merge branch 'demo' into dev 2022-02-17 16:04:07 -07:00
Deniz Akşimşek
3bcaaf408b
Simplify interpolate() function in demo script 2022-02-18 00:30:16 +03:00
carson
6a91c29099 finishing touches 2022-02-17 13:29:01 -07:00
carson
76204210f1 update demo docs 2022-02-17 13:26:06 -07:00
carson
e85f2e97f5 redirect setup 2022-02-17 13:11:25 -07:00
carson
075385f96f redirect setup 2022-02-17 13:06:48 -07:00