Hi, I like the way hiccup allows you to represent html elements as datastructure. However this is limited to native elements. If you want to represent custom elements, the solution is to crate a function which will then spit out the basic html tags that hiccup compiler understands.
It would be great if hiccup allowed the ability to define custom tags. ie a macro which allows us to define custom tags, which is then picked up by hiccup's compiler. eg to define a new element (from hiccup's code)- (defelem link-to "Wraps some content in a HTML hyperlink with the supplied URL." [url & content] [:a {:href (to-uri url)} content]) which is then called as (link-to "http://google.com" "Hi this is google"). Instead of that if it allowed an extensible compiler with the same macro defelem, I could call - [:link-to {:url "http://google.com"} "Hi this is google"] Will that not be more clojurey :) This functinality would be similar to AngularJS, which bills itself as an html compiler. Has anyone tried out something similar with hiccup? Thanks, Murtaza -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en