HTML construction library
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
source/dhtags
.gitignore
LICENSE
README.md
USAGE.md
dub.sdl

README.md

dhtags

This project is no longer actively maintained.

dhtags is an HTML construction library for D.

In short, it takes D code that looks like this:

html(
    head(
        title("My page"),
        script(type="text/javascript")("Some script")
    ),
    body_(
        div(id="main", className="greeting")(
            h1("Hello!"),
            a(href="https://www.example.com")("Example link")
        )
    )
)

and turns it into this:

<html>
    <head>
        <title>My page</title>
        <script type="text/javascript">Some script</script>
    </head>
    <body>
        <div id="main" class="greeting">
            <h1>Hello!</h1>
            <a href="https://www.example.com">Example link</a>
        </div>
    </body>
</html>

Install

Add either of the following to your DUB package file.

dub.json "dhtags": "~>0.2.1"

dub.sdl dependency "dhtags" version="~>0.2.1"

Usage

See USAGE.md

License

MIT