tags 0.0.5
tags: ^0.0.5 copied to clipboard
Build html elements by tag name.
Tags #
Build html elements by tag name in Dart.
Build Html Fluently #
Tags makes it easy to build trees of html elements. Consider an example:
import 'package:tags/html.dart';
main() {
document.body.append(
ul(() {
li()..text = 'Coffee';
li()..text = 'Tea';
li()..text = 'Milk';
}));
}
In the above example, we append three <li> elements to the <ul> element to
create an unordered list which we then append to document.body. This is
equivalent to:
<body>
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
</body>
Tags uses the MIT license as described in the LICENSE file, and follows semantic versioning.
