A toy poc HTML DSL in swift.
aspect\project | swift-html | Vaux | Plot | H |
---|---|---|---|---|
nodes | enum | generic enum | protocol | |
elements | static function of Node |
global function | static function of specialized Node<Context> |
struct conform H5Element |
elements representation | array | function builder | array | function builder |
attributes | static function of Attribute |
member of HTML |
member of specialized Node<Context> |
static function of element's associatedtype |
attributes representation | array parameter | modifier | together with inner elements | variadic parameters |
branch | ? | native | .if |
native |
loop | ? | forEach |
.forEach |
ForEach |
useable | yes | yes | yes | no |
without foundation? | no | no | no | currently yes |
rendering | String concatenation | TextOutputStream |
String concatenation | String concatenation |