Re: Clojure equivalent to Ruby's ERB

2009-06-14 Thread Emeka
Stuart Sierra wrote: > > On May 26, 10:47 pm,markgunnels wrote: > > > > > Hopefully this doesn't get me booed off the message board but is there > > > a Clojure equivalent to Ruby's ERB? I'm try to use Clojure to perform > > > code generation >

Re: Clojure equivalent to Ruby's ERB

2009-06-14 Thread markgunnels
is an excellent introduction to the subject. On May 27, 6:02 pm, Stuart Sierra wrote: > On May 26, 10:47 pm,markgunnels wrote: > > > Hopefully this doesn't get me booed off the message board but is there > > a Clojure equivalent to Ruby's ERB? I'm try to use Clojure to pe

Re: Clojure equivalent to Ruby's ERB

2009-05-27 Thread Stuart Sierra
On May 26, 10:47 pm, markgunnels wrote: > Hopefully this doesn't get me booed off the message board but is there > a Clojure equivalent to Ruby's ERB? I'm try to use Clojure to perform > code generation I've had success with StringTemplate. Very functional desi

Re: Clojure equivalent to Ruby's ERB

2009-05-27 Thread Max Suica
I think you could do a hack using macros and eval at runtime in order to expand them into your code, but I think one of the fellas in the chat room said to be wary if that's the only approach I can see to a problem, because it's easy to screw up, and not entirely good practice. Btw, does clojure

Re: Clojure equivalent to Ruby's ERB

2009-05-27 Thread markgunnels
es top level context. > > It's not documented, but if anyone is interested I can do some. > > cheers > > bd > > On Tue, 2009-05-26 at 19:47 -0700, markgunnels wrote: > > Hopefully this doesn't get me booed off the message board but is there > > a Cl

Re: Clojure equivalent to Ruby's ERB

2009-05-27 Thread ritchie turner
rote: > Hopefully this doesn't get me booed off the message board but is there > a Clojure equivalent to Ruby's ERB? I'm try to use Clojure to perform > code generation and, while it makes for an excellent language to write > a parser in, I can't quite figure out the

Re: Clojure equivalent to Ruby's ERB

2009-05-27 Thread Krukow
On May 27, 4:47 am, markgunnels 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

Clojure equivalent to Ruby's ERB

2009-05-27 Thread markgunnels
Hopefully this doesn't get me booed off the message board but is there a Clojure equivalent to Ruby's ERB? I'm try to use Clojure to perform code generation and, while it makes for an excellent language to write a parser in, I can't quite figure out the best way to actually t