belatuk_html_builder 3.0.2 belatuk_html_builder: ^3.0.2 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.
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);
}