Liking cljdoc? Tell your friends :D

Composer Renderer

Renderer library for Respo Composer

Usage

[respo/composer "0.1.0-a1"]
(respo-composer.core/render-markup markup
  {:data {}
   :level 1
   :templates {"container" nil}})

Specs

Node typeprops
box-
spacewidth, height
textvalue
somevalue
buttonaction, text
linkaction, text, href
iconaction, name
templatename, data
listvalue
inputaction, value, textarea
slotdom
inspecttitle
popupvisible
casevalue(?)

For string values,

  • ones that start with @ will be read as values
  • :x would be read as a keyword :x
  • |x would be read as a string "x"

for example,

  • a, means "a"
  • @:a, means (get-in data [:a])
  • @|a, means (get-in data ["a"])
  • @:a :b |c, means (get-in data [:a :b "c"])

data inside list children

  • index
  • item, list item
  • outer, data of outer context

Workflow

Workflow https://github.com/mvc-works/calcit-workflow

License

MIT

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close