Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/diegovsky/htmeta

KDL dialect for HTML
https://github.com/diegovsky/htmeta

Last synced: 27 days ago
JSON representation

KDL dialect for HTML

Awesome Lists containing this project

README

        

# HTMETA
![GitHub Release](https://img.shields.io/github/v/release/Diegovsky/htmeta)
![GitHub Repo stars](https://img.shields.io/github/stars/Diegovsky/htmeta)
![GitHub Forks](https://img.shields.io/github/forks/Diegovsky/htmeta)
![GitHub Contributors](https://img.shields.io/github/contributors/Diegovsky/htmeta)

You can think of this as HTML 2.

## What's this?
This crates implements a (simple) flavour of [`KDL`] called `htmeta`. This
allows you to write `HTML` in a better, more comfortable and simpler format than
raw `HTML`!

Mainly, this gets rid of the tag pairs `<>` and `>`, in favour of good ol' curly brackets.
Here's the same page written in both `HTML` and `htmeta`:

```html


Welcome!



This is an example page. Very cool!


```

```kdl
!DOCTYPE html
html {
body {
h1 text="Welcome!"
p {
text "This is an example page. Very cool!"
}
}
}
```

I might be biased, but I **much** prefer `htmeta`'s straightforwardness!

## More Information
Checkout the [repository](https://github.com/Diegovsky/htmeta). You can find examples and more documentation there!

Read the [details](./DETAILS.md) document for, well, details on what you can do with `htmeta`!.

[`KDL`]: kdl.dev