weavejester / hiccup

Fast library for rendering HTML in Clojure
http://weavejester.github.io/hiccup
Eclipse Public License 1.0
2.68k stars 174 forks source link

Add ability to generate an output without a tag #133

Closed mrchaarlie closed 8 years ago

mrchaarlie commented 8 years ago

Perhaps it's not intended, or I cannot figure this out, but I should be able to output something without having to wrap it in a tag.

weavejester commented 8 years ago

Could you explain a little more what you mean by this? Hiccup can already output raw text, or lists of elements:

user=> (html "hello")
"hello"
user=> (html (list [:span "foo"] [:span "bar"]))
"<span>foo</span><span>bar</span>"