On Oct 8, 5:01 am, Allen Rohner <[email protected]> wrote: > Hello, I'd like to announce the availability of a new library, called > Scriptjure. It's a macro that generates javascript strings from > Clojure s-exprs. My initial use for it is in glue code for Clojure > webapps. For example: > > (js (fn foo [x] > (var y 3) > (return (+ x y)))) > => "function foo (x) { > var y = 3; > return (x + y); > }" > > You can get the code and read the documentation > athttp://github.com/arohner/scriptjure > > Allen
I took a quick look, and that looks really neat. One thing though: Instead of the "clj" form to escape back to clojure, why not just use "unquote" (and possibly unquote-splicing)? that would allow you to use the ~ reader macro as a shortcut, just like in syntax-quote. -- Jarkko --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
