dhtags 0.2.1

HTML construction library


To use this package, put the following dependency into your project's dependencies section:

dub.json
dub.sdl

D HTML Tags

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

Authors:
Jatan Patel
Dependencies:
none
Versions:
0.2.1 2017-Nov-04
0.2.0 2016-Apr-15
0.1.0 2016-Apr-05
~master 2017-Nov-08
~develop 2016-Dec-02
Show all 5 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 9 downloads this month

  • 61 downloads total