Pure ruby haml rendering ought to work in jruby, and you could call it from 
clojure... you would just need to inject values into the jruby scope, taking 
the place of a rails controller.

That seems a bit kludgey, but perhaps if you have tons of templates it might be 
worth it to avoid rewriting then from scratch.

I'd suggest trying to do some static transformation of the templates ... 
parsing the haml and emitting hiccup, turning references to ruby instance 
variables into clojure fn arguments. I think that'd be as easy as trying to 
marry jruby + clojure, and after that one time transformation you're left with 
something simpler.

If there's too much logic in the templates, it could get tricky...

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to