Rewrite the launcher in MoonBit (old code moves to legacy/) (#1)
This commit was merged in pull request #1.
This commit is contained in:
1 parent
7d2bf5996f
commit
2fa7bd745b
150 files changed
+8319
-462
No files matched your search
@@ -0,0 +1,18 @@
|
||||
///|
|
||||
test "to_html" {
|
||||
let n : Node[Int32] = el(
|
||||
"div",
|
||||
classes=["a", cls_if("b", false), cls_if("c", true)],
|
||||
handlers={ ..Handlers::none(), tap: Some(1), },
|
||||
children=[el("span", children=[text("x < y")]), text("tail")],
|
||||
)
|
||||
inspect(
|
||||
to_html(n),
|
||||
content=(
|
||||
#|<div class="a c" on="tap">
|
||||
#| <span>x < y</span>
|
||||
#| tail
|
||||
#|</div>
|
||||
),
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user