hoplon

2023-06-25T13:20:58.625889Z

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

2023-06-25T14:51:53.344149Z

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

2023-06-25T14:52:26.424959Z

for-tpl is more recent and preferable also

2023-07-03T13:05:57.883999Z

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?

2023-07-03T13:07:26.871479Z

Well, I just jammed it into a div 😅

2023-07-03T14:13:16.935569Z

@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?

2023-07-03T14:14:41.856229Z

these will also work:

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

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