103 Commits

Author SHA1 Message Date
Carson Gross
47bdec5fbc Merge branch 'gohugo' into dev
# Conflicts:
#	www/attributes/hx-target.md
#	www/content/docs.md
#	www/content/events.md
#	www/content/examples/animations.md
#	www/reference.md
#	www/static/test/index.html
2023-04-06 11:04:36 -06:00
Carson Gross
b4e6c5cbd5 hx-on attribute 2023-03-31 06:44:01 -06:00
Alexander Petros
5a5ebd7693
Add support for "naked" triggers and htmx:trigger event (#1327)
The `htmx:trigger` event is fired whenever an HTMX AJAX request would
be. Now, `hx-trigger` can also be specified on an element without an
AJAX request, which will simply fire the `htmx:trigger` event on the
action specified by the attribute, and do nothing else.

This pattern allows for specifying client-side actions that don't
require a network request, while remaining within the HTMX control
paradigm.
2023-03-28 09:14:16 -06:00
Daniel J. Summers
f690d92834 Replace www directory 2023-03-18 11:29:38 -04:00
Denis Palashevskii
a708395d46 Docs: Move extension script URL to the start of the page (#1232)
* Move extension script URL to the start of the page

* Improve visibility of installation instructions on /extensions page
2023-02-02 16:59:03 -07:00
Denis Palashevskii
f44b04f1a1
Docs: Move extension script URL to the start of the page (#1232)
* Move extension script URL to the start of the page

* Improve visibility of installation instructions on /extensions page
2023-02-02 10:34:17 -07:00
Mark Croxton
4419bc4c90
History cache embargo (#1113)
* Add hx-history="false" to prevent sensitive or session data entering the localStorage cache

* Correctly get value of hx-history attribute.

* Add test for hx-history attribute.

* Allow history cache to be disabled when multiple `hx-history` attributes are present in a document, and any one of them is set to false.

* Add documentation for `hx-history` attribute.

* Add `hx-history` attribute to reference doc

* Correct the order of the `hx-history` attr in the reference doc.
2022-12-03 16:56:15 -06:00
Ben Croker
6f49d3a36a
Add htmx:confirm event 2022-11-06 20:36:08 -06:00
Ben Croker
d805b531a7
Add hx-validate attribute 2022-11-06 20:29:50 -06:00
Christiaan Kras
f7ff6b2c29
Update reference.md (#1104)
Typo
2022-10-28 21:33:17 -06:00
Wilk
aee582a670
Update reference.md : link to hx-vals from hx-vars (#1091) 2022-10-23 08:57:35 -06:00
Waldir Pimenta
3b0d7a8c9b
reference docs: add "core" terminology (#1079)
Also fix capitalization of "htmx".
2022-10-18 09:06:04 -06:00
Nathaniel Sabanski
0550d97bcd
Docs: Reference guide readability. Essential attributes. (#980)
* Docs: Reference guide readability. Essential attributes.

* Essential Attributes -> Additional Attributes
2022-07-20 13:59:26 -06:00
Daniel J. Summers
8e43f32019
Add docs for HX-Replace-Url header (#972)
- Fix links on hx-replace-url attribute page
- Sort headers alphabetically on reference page
2022-07-20 06:46:46 -06:00
mayowa
9eef783011
Implement HX-Reswap (#949)
* Document optional delay parameter for addClass, removeClass, remove

* Implement HX-Reswap (resolves #933)
2022-06-29 15:37:28 -06:00
Carson Gross
0a5fc2cdb9 Merge branch 'master' into dev
# Conflicts:
#	www/docs.md
2022-06-16 14:12:41 -06:00
Carson Gross
f6fe55b292 htmx 1.8 release prep 2022-06-16 14:11:29 -06:00
Carson Gross
87e69fcd69 introduce hx-replace-url
fixes https://github.com/bigskysoftware/htmx/issues/436
2022-06-16 13:22:48 -06:00
Carson Gross
8e7a4bca27 Merge remote-tracking branch 'origin/dev' into dev 2022-05-31 13:30:42 -06:00
Carson Gross
05619c5bec support the hx-select-oob attribute 2022-05-31 13:30:34 -06:00
Ben Beecher
d51d8cb74c
Adding support for client side redirects - HX-Location (#832)
* Adding support for client side boosted redirects

* First pass at hx-boost-redirect

* Fixing some small documentation issues

* Rename boost-redirect to Location
2022-05-27 11:39:23 -06:00
Nathaniel Sabanski
0f3c115e7e
Added missing documentation: htmx:timeout event (#921)
* Added missing htmx:timeout

* Added missing htmx:timeout documentation.

* Added helpful description to htmx:timeout
2022-05-24 06:34:10 -06:00
Carson Gross
13b3ccff0d Merge branch 'master' into dev
# Conflicts:
#	www/docs.md
2022-05-12 19:34:31 -06:00
Qori El-Hafizh
c91f87727d
Fix a typo in reference.md (#897)
"has been moved to an extension"
2022-05-12 16:43:42 -06: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
msladecek
9dfc713191
fix links to web-sockets extension page (#841) 2022-04-07 13:41:20 -06: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
c33d5ba277 finishing touches 2022-02-17 16:25:54 -07:00
carson
0e1e3c68a2 docs for release 2022-02-17 06:30:15 -07:00
carson
d4d20eb1b5 docs work 2022-02-16 20:20:06 -07:00
carson
c7f4f360d1 Merge branch 'dev' into pull/753
# Conflicts:
#	src/htmx.js
2022-02-04 11:16:59 -07:00
carson
d9bf50182d Merge remote-tracking branch 'origin/dev' into dev 2022-02-04 11:14:35 -07:00
carson
d0161da3a6 Merge branch 'pull/667' into dev
# Conflicts:
#	www/reference.md
2022-02-04 11:13:59 -07:00
Ben Pate
8ac4f651b1
Response Header HX-Push:false (#734)
* Support header HX-Push="false"

This is a tiny change that allows the `HX-Push` response header to obey "false" just like the `hx-push-url` attribute.

* Add documentation for hx-push response header
2022-02-04 11:06:54 -07:00
carson
82016a7ba5 Merge remote-tracking branch 'origin/master' into dev 2022-02-04 10:55:52 -07:00
Len Boyette
470a721037
succesful => successful in reference.md (#795) 2022-02-04 10:52:37 -07:00
alfonsrv
bce4baa20c Rename hx-inherit to hx-disinherit 2022-01-25 23:27:39 +01:00
Ben Beecher
2e9ad6df28 Updating docs for new oob events 2022-01-15 13:59:58 -05:00
alfonsrv
d025afe49f hx-inherit tests x documentation 2022-01-06 14:45:12 +01:00
carson
ee507565d0 Merge branch 'dev' into pull/660
# Conflicts:
#	src/htmx.js
#	www/extensions.md
2021-11-23 13:43:29 -07:00
carson
56d323e611 include docs 2021-11-22 02:36:29 -07:00
Ben Pate
6e3a2738e2 Update legacy pages
not removing pages for hx-sse and hx-ws attributes.  Just marking them as deprecated.
2021-11-17 20:02:24 -07:00
carson
19ef8ad76a add htmx-added class for easier CSS transition writing 2021-10-01 13:23:06 -06:00
carson
760d42a195 1.6 release prep 2021-09-30 19:51:15 -06:00
carson
d153929304 include HX-Boosted header when request is via a boosted element
fixes https://github.com/bigskysoftware/htmx/issues/600
2021-09-23 15:43:45 -06:00
Ben Croker
8b301fe0de
Added hx-request to references 2021-07-14 17:29:41 +02:00
carson
b44569a9db docs 2021-04-04 12:05:33 -06:00
carson
b54d6e57d3 Improve API 2021-03-06 06:50:56 -07:00
carson
a664587686 support the htmx:beforeSend event 2021-03-01 10:58:27 -07:00