https://github.com/marionauta/deno-htmx
A collection of types and helpers to work with HTMX and Deno.
https://github.com/marionauta/deno-htmx
deno htmx preact
Last synced: 5 months ago
JSON representation
A collection of types and helpers to work with HTMX and Deno.
- Host: GitHub
- URL: https://github.com/marionauta/deno-htmx
- Owner: marionauta
- License: mit
- Created: 2024-05-08T12:14:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T16:29:28.000Z (about 2 years ago)
- Last Synced: 2025-04-05T11:41:31.580Z (about 1 year ago)
- Topics: deno, htmx, preact
- Language: TypeScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deno HTMX
A collection of types and helpers that I frequently use when working with HTMX
and Deno. I thought some of you might find them useful too.
## Organization
I personally use [preact][preact] for my server side rendering, so I import
`src/preact/mod.ts` into my code. It is designed to use preact's `JSX.Element`
as the `Body` type.
If you use any other library, you can import `src/mod.ts` and work with the
generic functions. You just need to define a custom `Body` type and a
"stringify" function that takes a `Body` and returns a `string`.
[preact]: https://preactjs.com/