-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
1f780d1
commit fc02509
Showing
411 changed files
with
818 additions
and
708 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# htmx overview | ||
|
||
## official links | ||
|
||
[`htmx.org`](https://htmx.org/) | ||
|
||
[repo](https://github.com/bigskysoftware/htmx) | ||
|
||
## articles | ||
|
||
[HTMX, pour un développement web simplifié - `www.sfeir.dev` - 20230726](https://www.sfeir.dev/front/htmx-pour-un-developpement-web-simplifie-vous-avez-peut-etre-la-chance-davoir-connu-lage-des-pages-web-statiques-sans-interactions-puis-lavenement-de-flash-et-jquery-pour-finir-aujourdh/) | ||
|
||
[A First Look at HTMX and How it Compares to React - `www.builder.io` - 20230915](https://www.builder.io/blog/htmx-vs-react) | ||
|
||
## tools | ||
|
||
[gist `htmx + mock requests = SPA?`](https://gist.github.com/edofic/7c6fc369ef960315422914e946f4854b) [`mock-requests` pkg](https://www.npmjs.com/package/mock-requests) | ||
|
||
```html | ||
<!DOCTYPE html> | ||
<html> | ||
|
||
<head> | ||
<title>Hello Page</title> | ||
<script src="https://unpkg.com/[email protected]"></script> | ||
<script src="https://unpkg.com/[email protected]/index.js"></script> | ||
<script language="javascript"> | ||
MockRequests.setDynamicMockUrlResponse('/ui/button', | ||
{ | ||
dynamicResponseModFn: | ||
function (request, response, parameters) { | ||
console.log("A mock request was made: ", request, response, parameters) | ||
return "hello"; // hardcoded here but full request is available for dynamically generating | ||
}, | ||
usePathnameForAllQueries: true | ||
}); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<h1>Hello</h1> | ||
<button hx-get="/ui/button" hx-swap="afterend">Load</button> | ||
</body> | ||
|
||
</html> | ||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.