Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit bc47f11

Browse files
committed
Changed repeat function
New method
1 parent aec07ec commit bc47f11

File tree

9 files changed

+3365
-3590
lines changed

9 files changed

+3365
-3590
lines changed

__test__/display.js

Lines changed: 840 additions & 832 deletions
Large diffs are not rendered by default.

__test__/dom.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
<div class="bg">Hello</div>
1717
<hello-element name="world"></hello-element>
1818
<div class="height"></div>
19-
19+
<div class="repeat">
20+
Hello {data.name}
21+
</div>
2022
<style>
2123
.height {
2224
width: 100px;
@@ -57,6 +59,7 @@
5759
djs.component("hello-element", el => {
5860
djs.html(djs.toNodeList(el), `Hello ${el.getAttribute("name")}`)
5961
})
62+
djs.repeat(".repeat", [{name: 'Arthur'}, {name: 'Charlotte'}])
6063
}).toRun()
6164
)
6265
eye.test(

0 commit comments

Comments
 (0)