div - Respo/respo.calcit GitHub Wiki
Here's how you use div
macro to create a tree of <div>
s:
div
{}
:class-name "|example"
:style $ {}
:on $ {}
div $ {}
div $ {}
Its first argument is a HashMap consists of :style
:on
and other properties. For property like el.className
, you write in :class-name
.
Find more in DOM elements.