Skip to content

Diegovsky/htmeta

Repository files navigation

HTMETA

GitHub Release GitHub Repo stars GitHub Forks GitHub Contributors

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:

<!DOCTYPE html>
<html>
    <body>
        <h1>Welcome!</h1>
        <p>
            This is an example page. Very cool!
        </p>
    </body>
</html>
!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. You can find examples and more documentation there!

Read the details document for, well, details on what you can do with htmeta!.