Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willmartian/hdot
A zero-dependency, buildless, terse, and type-safe way to write HTML in JavaScript.
https://github.com/willmartian/hdot
eleventy html jamstack javascript minify template-engine templates typescript
Last synced: 3 months ago
JSON representation
A zero-dependency, buildless, terse, and type-safe way to write HTML in JavaScript.
- Host: GitHub
- URL: https://github.com/willmartian/hdot
- Owner: willmartian
- Created: 2022-03-18T16:16:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-21T16:04:35.000Z (over 2 years ago)
- Last Synced: 2024-09-29T07:05:01.632Z (3 months ago)
- Topics: eleventy, html, jamstack, javascript, minify, template-engine, templates, typescript
- Language: TypeScript
- Homepage: https://hdot.dev/
- Size: 685 KB
- Stars: 34
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hdot
A sensible way to write HTML in JavaScript.
- **Type-safe.** Helps you follow the HTML spec.
- **Terse.** Almost character for character with plain HTML.
- **Buildless.** Runs in the browser, the server, the gym.
- **Tiny.** ~900 bytes (minified and gzipped). No dependencies.
[Size Limit](https://github.com/ai/size-limit) controls the size.\* _not affiliated with the Hawaii Department of Transportation_
## [Read the docs](https://hdot.dev/)
```js
import { h } from "hdot";h.div(
h.h1`hdot`,
h.p`Type-safe HTML templates`,
h.a.href("https://hdot.dev")`Read the docs.`
);
``````html
```