ef.js List Mounting Demo
by Yukino Song
HTML
<script src="https://cdn.jsdelivr.net/npm/ef.js@latest"></script>
JavaScript
const { t, inform, exec } = ef
inform()
const container = new t`
>div
.Container:
>ul
+list
`
const Item = t`
>li
.Item {{count}}
`
for (let i = 0; i < 10; i++) container.list.push(new Item({$data: {count: i}}))
container.$mount({target: document.body})
exec()