-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
120 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ By removing these arbitrary constraints htmx completes HTML as a | |
## quick start | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11"></script> | ||
<script src="https://unpkg.com/[email protected].12"></script> | ||
<!-- have a button POST a click via AJAX --> | ||
<button hx-post="/clicked" hx-swap="outerHTML"> | ||
Click Me | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ By removing these constraints, htmx completes HTML as a [hypertext](https://en.w | |
<h2>quick start</h2> | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11"></script> | ||
<script src="https://unpkg.com/[email protected].12"></script> | ||
<!-- have a button POST a click via AJAX --> | ||
<button hx-post="/clicked" hx-swap="outerHTML"> | ||
Click Me | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,7 +114,7 @@ The fastest way to get going with htmx is to load it via a CDN. You can simply a | |
and get going: | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11" integrity="sha384-0gxUXCCR8yv9FM2b+U3FDbsKthCI66oH5IA9fHppQq9DDMHuMauqq1ZHBpJxQ0J0" crossorigin="anonymous"></script> | ||
<script src="https://unpkg.com/[email protected].12" integrity="sha384-ujb1lZYygJmzgSwoxRggbCHcjc0rB2XoQrxeTUQyRjrOnlCoYta87iKBWq3EsdM2" crossorigin="anonymous"></script> | ||
``` | ||
|
||
While the CDN approach is extremely simple, you may want to consider [not using CDNs in production](https://blog.wesleyac.com/posts/why-not-javascript-cdn). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,7 @@ against `htmx` in each distribution. | |
|
||
### Installing Extensions {#installing} | ||
|
||
You can find the source for the bundled extensions at `https://unpkg.com/browse/[email protected].11/dist/ext/`. You will need | ||
You can find the source for the bundled extensions at `https://unpkg.com/browse/[email protected].12/dist/ext/`. You will need | ||
to include the javascript file for the extension and then install it using the [hx-ext](@/attributes/hx-ext.md) attributes. | ||
|
||
See the individual extension documentation for more details. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ This header is commonly used by javascript frameworks to differentiate ajax requ | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/ajax-header.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/ajax-header.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Alpine.js now has a lightweight [morph plugin](https://alpinejs.dev/plugins/morp | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/alpine-morph.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/alpine-morph.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ optionally followed by a colon `:` and a time delay. | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/class-tools.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/class-tools.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ A second "array" version of each template is now offered, which is particularly | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/client-side-templates.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/client-side-templates.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
@@ -66,7 +66,7 @@ a [`<template>` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/t | |
<meta name="viewport" content="width=device-width"> | ||
<title>JS Bin</title> | ||
<script src="https://unpkg.com/htmx.org"></script> | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/client-side-templates.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/client-side-templates.js"></script> | ||
<script src="https://unpkg.com/mustache@latest"></script> | ||
</head> | ||
<body> | ||
|
@@ -99,7 +99,7 @@ Here's a working example using the `mustache-array-template` working against an | |
<meta name="viewport" content="width=device-width"> | ||
<title>JS Bin</title> | ||
<script src="https://unpkg.com/htmx.org"></script> | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/client-side-templates.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/client-side-templates.js"></script> | ||
<script src="https://unpkg.com/mustache@latest"></script> | ||
</head> | ||
<body> | ||
|
@@ -140,7 +140,7 @@ Some styling is needed to keep the object visible while not taking any space. | |
<meta name="viewport" content="width=device-width"> | ||
<title>JS Bin</title> | ||
<script src="https://unpkg.com/htmx.org"></script> | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/client-side-templates.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/client-side-templates.js"></script> | ||
</head> | ||
<body> | ||
<div hx-ext="client-side-templates"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ or through the `console.log` function with a `DEBUG:` prefix. | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/debug.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/debug.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ This extension disables an element during an htmx request, when configured on th | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/disable-element.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/disable-element.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ request. | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/event-header.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/event-header.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ This extension addresses that shortcoming & will likely be integrated into htmx | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/head-support.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/head-support.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ will be evaluated as the fields in a javascript object literal. | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/include-vals.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/include-vals.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ This extension encodes parameters in JSON format instead of url format. | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/json-enc.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/json-enc.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ This extension allows you to easily manage loading states while a request is in | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/loading-states.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/loading-states.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ actual HTTP method. This is necessary when dealing with some firewall or proxy | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/method-override.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/method-override.js"></script> | ||
``` | ||
|
||
### Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ The `morphdom` library does not support morph element to multiple elements. If t | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/morphdom-swap.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/morphdom-swap.js"></script> | ||
``` | ||
|
||
### Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ It is a very powerful tool in conjunction with `hx-boost` and `preload` extensio | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/multi-swap.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/multi-swap.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ You can use a `*` to match any path component: | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/path-deps.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/path-deps.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ This extension uses request parameters to populate path variables. Used paramete | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/path-params.js"> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/path-params.js"> | ||
``` | ||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ The `preload` extension allows you to load HTML fragments into your browser's ca | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/preload.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/preload.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ The `remove-me` extension allows you to remove an element after a specified inte | |
## Install | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected].11/dist/ext/remove-me.js"></script> | ||
<script src="https://unpkg.com/[email protected].12/dist/ext/remove-me.js"></script> | ||
``` | ||
|
||
## Usage | ||
|
Oops, something went wrong.