Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
improve DSL for custom elements
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Oct 30, 2022
1 parent 361d715 commit f496edd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/test/kotlin/kweb/HistoryTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ class HistoryTestApp {
a {
element {
href = "/${num + 1}"
text("Next ($num)")
}
text("Next ($num)")

}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/kweb/demos/todo/TodoApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class TodoApp {
renderRemoveButton(activeListKey, item)
}
div(fomantic.content) {
text(item)
element.text(item)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/kweb/docs/dom.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ button {
element {
classes("bigbutton")
this["autofocus"] = true
text("Click Me!")
}
text("Click Me!")
}
// ANCHOR_END: attr2

Expand Down

0 comments on commit f496edd

Please sign in to comment.