| author | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-04-12 02:27:08 UTC |
| committer | Stephen Paul Weber
<singpolyma@singpolyma.net> 2026-04-12 02:27:08 UTC |
| parent | 335baf4a911d0f153fe1cd9ece3de0b849d819ee |
| borogove/Html.hx | +7 | -0 |
diff --git a/borogove/Html.hx b/borogove/Html.hx index df22eb6..70ce706 100644 --- a/borogove/Html.hx +++ b/borogove/Html.hx @@ -92,6 +92,13 @@ class Html { return new Html([CData(new TextNode(text))], null); } + /** + HTML builder, make a fragment + **/ + public static function fragment(nodes: Array<Html>) { + return new Html(nodes.map(n -> n.xml).flatten(), null); + } + /** Build HTML payload from source **/