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">
Also have a look at dommy which is essentially an optimised version of crate (the cljs version of hiccup) that murtaza52 suggested.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With