hoplon 2023-06-25

Hello! is there an example for using loop-tpl*?

loop-tpl* is part of the implementation of the loop-tpl macro and not really for direct use

for-tpl is more recent and preferable also

Hello again 🙂 If I have a cell of a vec of divs:

#object [javelin.core.Cell [#<HoplonElement: DIV> #<HoplonElement: DIV> #<HoplonElement: DIV> #<HoplonElement: DIV> #<HoplonElement: DIV>]]
How can I render it?

Well, I just jammed it into a div 😅

@alandipert I'm having hard time figuring where can I use cells and where I can't, for instance:

;; This will work:
(h/div
     {:style "background-color: red"}
     "HELLO")

;; But this will throw Node.appendChild: Argument 1 does not implement interface Node.

(h/div
     (cell {:style "background-color: red"})
     (cell "HELLO"))
can't children and attr be cells? or must they be structures (map \ vec) that may hold cells?

these will also work:

(h/div
     {:style "background-color: red"}
     ["HELLO"])

(h/div
     {:style "background-color: red"}
     (cell ["HELLO"]))