belatuk_html_builder 6.0.0
belatuk_html_builder: ^6.0.0 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.
Change Log #
6.0.0 #
Breaking changes in 6.0.0 #
- Breaking: Text and attribute values are HTML-escaped when rendered, except text inside
<script>and<style>. Userawfor HTML that must be written as-is, and stop escaping values yourself, or they will be escaped twice. - Breaking:
col,keygenandwbrcreate self-closing nodes and no longer take children, andiframecreates a node with a closing tag and takes children. - Breaking: Nodes of different classes are never equal, so
Node('br')no longer equalsSelfClosingNode('br'), andTextNodeequality is symmetric. - Breaking:
NodeBuilder.buildandrebuildtake a nullableselfClosing. When it is omitted, a builder made withNodeBuilder.fromkeeps whether the node was self-closing, instead of always creating aNode.
New in 6.0.0 #
- Added
RawNodeand therawhelper, for HTML that is rendered without escaping. - Added the
data,hgroup,meter,search,slotandtemplatehelpers.
Fixes in 6.0.0 #
- Elements:
abbrrenders<abbr>instead of<addr>. - Elements:
articletakesid, and itsclassNameandstyleaccept any attribute value, like the other helpers. - Builder:
addClassno longer adds a class that is already present. - Builder:
rebuildandrebuildRecursivekeep text nodes and self-closing nodes, instead of turning them into empty elements. - Nodes: Equal nodes have equal hash codes, whatever the order of their attributes.
- Docs: The
html5option ofStringRendereris described correctly:truerenders<br>, andfalserenders<br/>. - Docs: The example prints the rendered HTML instead of
Instance of 'Node'.
5.5.0 #
- Require Dart >= 3.13
5.4.0 #
- Require Dart >= 3.8
5.3.0 #
- Require Dart >= 3.5
- Updated
lintsto 5.0.0
5.2.0 #
- Require Dart >= 3.3
- Updated
lintsto 4.0.0
5.1.0 #
- Updated
lintsto 3.0.0
5.0.0 #
- Require Dart >= 3.0
5.0.0-beta.1 #
- Require Dart >= 3.0
4.0.0 #
- Require Dart >= 2.17
- Added hashCode
3.0.2 #
- Fixed license link
3.0.1 #
- Update broken link in pubspec
3.0.0 #
- Upgraded from
pendantictolintslinter - Removed deprecated parameters
- Published as
belatuk_html_builderpackage
2.0.3 #
- Added an example
- Updated README
2.0.2 #
- Run
dartfmt -w .
2.0.1 #
- Added pedantic dart rules
2.0.0 #
- Migrated to work with Dart SDK 2.12.x NNBD
1.0.4 #
- Added
rebuild,rebuildRecursive, andNodeBuilder.
1.0.3 #
- Dart 2 ready!
1.0.2 #
- Changed
hand theNodeconstructor to takeIterables of children, instead of justLists.