Skip to content

Commit 5938b0b

Browse files
committed
Add an HTMX example
1 parent cd88320 commit 5938b0b

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed

samples/htmx/LICENSE

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
This is the HTMX license, which is BSD-0:
2+
3+
Zero-Clause BSD
4+
=============
5+
6+
Permission to use, copy, modify, and/or distribute this software for
7+
any purpose with or without fee is hereby granted.
8+
9+
THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
10+
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
11+
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
12+
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
13+
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
14+
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
15+
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

samples/htmx/greetings/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Greetings
2+
3+
HTMX appears to be working

samples/htmx/htmx.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/htmx/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!document html>
2+
<html lang="en">
3+
<head>
4+
<title>Hi</title>
5+
<script src="htmx.min.js" integrity="sha384-/TgkGk7p307TH7EXJDuUlgG3Ce1UVolAOFopFekQkkXihi5u/6OCvVKyz1W+idaz" crossorigin="anonymous"></script>
6+
</head>
7+
<body>
8+
<button hx-put="/greetings">
9+
Greetings
10+
</button>
11+
</body>
12+
</html>

0 commit comments

Comments
 (0)