On May 27, 4:47 am, markgunnels <markgunn...@gmail.com> wrote:
> Hopefully this doesn't get me booed off the message board but is there
> a Clojure equivalent to Ruby's ERB?

I don't think there is a Clojure equivalent (i.e. for general purpose
text generation), but given Clojure's great Java integration you could
easily use e.g. Freemarker. An advantage here is that you can use
Clojure datastructures (think PersistentHashMap, PersistentVector) as
Freemarker models.

There is also StringTemplate which is a functional approach to
templating which might match Clojure better (but I haven't tried out
ST).

If you are doing HTML/XML generation I think there are many pure-
Clojure options...

/Karl
--~--~---------~--~----~------------~-------~--~----~
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
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to