by adambard · 6y ago · 0 comments
{
tag: "button",
attributes: {
"id": "baz",
"class": "foo bar",
"data": "1",
"onclick": f,
},
children: [
"Hello",
{
tag: "em",
attributes: {},
children: ["there"],
}
]
}
Would be represented as: [:button#baz.foo.bar {:data 1 :on-click f} "Hello" [:em "there"]]In other words, there is only one language and one syntax to deal with.