Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libs - htmx - overview #84

Merged
merged 1 commit into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions content/.vuepress/sidebar-config/platforms-frameworks-libs.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ function getPlatformsFrameworksLibs() {
'vuejs/vuejs-overview'
]
},
{
title: 'htmx',
collapsable: false,
sidebarDepth: 2,
children: [
'htmx/htmx-overview'
]
},
{
title: 'Node.js',
collapsable: false,
Expand Down
46 changes: 46 additions & 0 deletions content/platforms-frameworks-libs/htmx/htmx-overview.md
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>
```
6 changes: 3 additions & 3 deletions docs/404.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/assets/js/107.93599d30.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading