belatuk_html_builder 5.3.0 copy "belatuk_html_builder: ^5.3.0" to clipboard
belatuk_html_builder: ^5.3.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);
}
copied to clipboard
1
likes
150
points
271
downloads

Publisher

verified publisherdukefirehawk.com

Weekly Downloads

2024.09.14 - 2025.03.29

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)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection

More

Packages that depend on belatuk_html_builder