htmleez 0.1.0 copy "htmleez: ^0.1.0" to clipboard
htmleez: ^0.1.0 copied to clipboard

HTML easy. A lightweight library for creating HTML programmatically in Dart.

example/htmleez_example.dart

import 'package:htmleez/htmleez.dart';

void main() {
  final el = html([
    body([
      div([
        ev.onload([
          cmd.consoleLog("La ctm"),
          cmd.consoleLog("La ctm 2"),
          cmd.toggleClassOnElement("body", "hidden"),
        ]),
      ]),
    ]),
  ]);

  final sb = StringBuffer();

  el.render(sb);

  print(sb.toString());
}
0
likes
140
points
76
downloads

Publisher

unverified uploader

Weekly Downloads

HTML easy. A lightweight library for creating HTML programmatically in Dart.

Documentation

API reference

License

MIT (license)

Dependencies

collection

More

Packages that depend on htmleez