htmlgen 1.1.0 copy "htmlgen: ^1.1.0" to clipboard
htmlgen: ^1.1.0 copied to clipboard

Just an html generator. Nothing more, nothing less.

example/htmlgen_example.dart

import 'package:htmlgen/htmlgen.dart';

void main() {
  // Required for calling `noSuchMethod`
  const dynamic html = HtmlBuilder();
  print(html.div(
    [
      Attr("hx-get", "/hello"),
      Attr("hx-target", "#main-content"),
      Attr("class", "bg-gray-300 p-3 rounded"),
    ],
    [
      html.button(
        [Attr("class", "btn btn-primary p-1")],
        [html.text("Hello, world")],
      ),
    ],
  ));
}
0
likes
145
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

Just an html generator. Nothing more, nothing less.

Repository (GitLab)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on htmlgen