belatuk_html_builder 5.4.0 copy "belatuk_html_builder: ^5.4.0" to clipboard
belatuk_html_builder: ^5.4.0 copied to clipboard

Build HTML AST's and render them to HTML. This can be used as an internal DSL, i.e. for a templating engine.

example/main.dart

import 'package:belatuk_html_builder/elements.dart';

void main() {
  var dom = html(
    lang: 'en',
    c: [
      head(
        c: [
          title(c: [text('Hello, world!')]),
        ],
      ),
      body(
        c: [
          h1(c: [text('Hello, world!')]),
          p(c: [text('Ok')]),
        ],
      ),
    ],
  );

  print(dom);
}
1
likes
150
points
183
downloads

Publisher

verified publisherdukefirehawk.com

Weekly Downloads

Build HTML AST's and render them to HTML. This can be used as an internal DSL, i.e. for a templating engine.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection

More

Packages that depend on belatuk_html_builder