Hi, In Rails you can create a view like this:
my_view.erb: <%= "hello" + @name %> I'm new to Clojure. I want to create something like the above like this: (defn my-view [] (str "hello" name)) The point is: * name is not known when my-view is defined * I don't want to pass name as a argument of my-view, this is kind of ugly boilerplate How can I implement this feature in Clojure? Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---