# htmlite

> Lenguaje para abreviar la codificación de html.

Latest version **1.0.1** (published 2023-03-15) · WTFPL license · 0 weekly downloads

## Install

```sh
npm install htmlite
pnpm add htmlite
yarn add htmlite
bun add htmlite
```

Provides the command `htmlite`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-03-15 |
| First published | 2023-03-15 |
| Weekly downloads | 0 |
| License | WTFPL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 41.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | allnulled |
| Maintainers | allnulled |

## Links

- npm: https://www.npmjs.com/package/htmlite
- npm.io page: https://npm.io/package/htmlite

## Recent versions

- 1.0.1 (latest) — 2023-03-15
- 1.0.0 — 2023-03-15

## README

# htmlite

Lenguaje para abreviar la codificación de html.

## Instalación

```sh
npm i -g htmlite
```

## Uso por código

```js
const output = require("htmlite").parse(`
@body {
  @div .main {
    @h1 > Título de página <
    @h3 >> Subtítulo de página <b>que permite HTML dentro</b> <<
    @div {
        @textarea#entrada_1 [disabled=true]
    }
  }
}`);
console.log(output.ast);
console.log(output.html);
```

## Uso por consola

```sh
htmlite index.htmlite
```

Para añadir el doctype de html5 a los ficheros que sigan en el comando:

```sh
htmlite plantilla1.htmlite plantilla2.htmlite plantilla3.htmlite --doctype index.htmlite
```


## Sintaxis

En este ejemplo se ve toda la sintaxis desplegada:

```
@div#id-1.clase-1.clase-1b/width:100%;/[editable="true"]{
  @div#id-2.clase-2/width:100%;/[]>Texto en lugar de subtags<
}
```

En este ejemplo se ve la misma sintaxis pero con espacios donde los permite:

```
@div #id-1 .clase-1 .clase-1b / width:100% ;/ [ editable="true" ] {
  @div #id-2 .clase-2 / width:100% ;/ [ ] > Texto en lugar de subtags <
}
```

## Licencia

Sí, licencia, licencia. Licencia para matar: 000/365.

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