htmleez 0.1.0 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());
}