# @decentra/html-markup

> Package to render markup based on Javascript template literals. It to some extent based on work of Jason Miller at https://github.com/developit/vhtml.git

Latest version **0.0.4** (published 2023-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @decentra/html-markup
pnpm add @decentra/html-markup
yarn add @decentra/html-markup
bun add @decentra/html-markup
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2023-10-07 |
| First published | 2023-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 10.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kote Isaev |
| Maintainers | kote.isaev |

## Links

- npm: https://www.npmjs.com/package/@decentra/html-markup
- Repository: https://codeberg.org/decentra/html-markup
- npm.io page: https://npm.io/package/@decentra/html-markup

## Recent versions

- 0.0.4 (latest) — 2023-10-07
- 0.0.3 — 2023-10-07
- 0.0.2 — 2023-10-07
- 0.0.1 — 2023-10-07

## README

# html-markup

Package to render markup based on Javascript template literals.
It to some extent based on/inspired by work of Jason Miller at https://github.com/developit/htm

This is VERY simplistic implementation based on tagged templates.

The purpose is just perform the kind of SSR (server-side-rendering).

Usage: 

```js 
import html from "@decentra/html-markup";

export function renderSomeHtml(values) {
    return html`<div class="${values.className}`>
        {values.items.map(item => html`<div>${item.message}</div>`)}
    </div>`;
}
```

---
_Source: https://npm.io/package/@decentra/html-markup · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
