FWIW, I've made macros out of parse and emit in my data.xml rework, for this purpose.
cheers 2014-10-24 0:32 GMT+02:00 Stephen Gilardi <[email protected]>: > > On Oct 23, 2014, at 5:06 PM, James Reeves <[email protected]> wrote: > > Or a macro: > > (defn endpoint [config] > (routes > (GET "/" [] (resource/url (this-ns) "index.html")))) > > > Perhaps a macro 'ns-path’: > > (defn endpoint [config] > (routes > (GET "/" [] (resource/url (ns-path "index.html”))))) > > —Steve > > -- > 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 > --- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 --- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
