Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/diegovsky/htmeta
- Owner: Diegovsky
- Created: 2024-08-10T20:36:19.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-11-09T19:48:50.000Z (about 2 months ago)
- Last Synced: 2024-11-09T20:30:38.780Z (about 2 months ago)
- Language: Rust
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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