Skip to content

Commit 3c5e1ff

Browse files
committed
php/htmx-base-test: dando uma fuçada com htmx
Signed-off-by: lucasew <[email protected]>
1 parent 31bc51a commit 3c5e1ff

File tree

5 files changed

+22
-0
lines changed

5 files changed

+22
-0
lines changed

php/htmx-base-test/a.php

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
aaa

php/htmx-base-test/b.php

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bbb

php/htmx-base-test/c.php

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ccc

php/htmx-base-test/index.php

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<html>
2+
<head>
3+
<title>Teste</title>
4+
5+
</head>
6+
7+
<body>
8+
<button hx-post="a.php" hx-swap="innerHTML" hx-target="#space">A</button>
9+
<button hx-post="b.php" hx-swap="innerHTML" hx-target="#space">B</button>
10+
<button hx-post="c.php" hx-swap="innerHTML" hx-target="#space">C</button>
11+
<div id="space"></div>
12+
<script src="https://unpkg.com/[email protected]"></script>
13+
</body>
14+
</html>

php/htmx-base-test/launch

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env -S nix run github:lucasew/nix-flake-shell
2+
#!nix-flake-shell nixpkgs.php
3+
4+
#! vim:ft=bash
5+
php -S 127.0.0.1:2222 -t .

0 commit comments

Comments
 (0)