|
|
|
|
|
by escherize
3775 days ago
|
|
Really, I think Hiccup is the best solution in this space. Prefer logic-less functions to output html strings? Hiccup has this use case covered. This is all stock Clojure[script], not a templating language: (def foo [:h2 "something cool"])
(hiccup.core/html foo) ;;=> "<h2>something cool</h2>"
Plus there's plenty of ways to quickly build up a bootstrap (, etc) page. (defn bootstrap-page [hiccup-form]
(hiccup.page/html5
(hiccup.page/include-js "link-to-jquery.js"
"link-to-bootstrap.js")
(hiccup.page/include-css "link-to-bootstrap.css")
hiccup-form))
BTW, there are some interactive examples at http://hiccup.space |
|