Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: about 2 hours ago
JSON representation

A zero-dependency, buildless, terse, and type-safe way to write HTML in JavaScript.

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


hdot


Type-safe HTML templates


Read the docs.

```