I am trying to generate the following HTML fragment using clojure.browser.dom, however it looks like it works different than hiccup,
<div data-role="controlgroup">
<a href="index.html" data-role="button">Yes</a>
<a href="index.html" data-role="button">No</a>
<a href="index.html" data-role="button">Maybe</a>
</div>
What is the correct notation for generating HTML element? Using,
[:div {:data-role "controlgroup"} ...]
does not generate,
<div data-role="controlgroup">
Have a look at crate – https://github.com/ibdknox/crate – it is a port of hiccup to cljs.
Also look at enfocus which is an implementation of enlive – https://github.com/cgrand/enlive