Thanks for catching that Michal :)
On Monday, June 4, 2012 9:37:35 AM UTC+5:30, Michał Marczyk wrote: > > Then I expect you typed > > (:require-macros [lib.ns :only [...]]) > > You need to use > > (:use-macros [lib.ns :only [...]]) > > instead. > > > On 4 June 2012 05:32, Murtaza Husain <murtaza.hus...@sevenolives.com> > wrote: > > > > Michal thanks for the help. > > > > This is the error that lein-cljsbuild gives me when using :only - > > > > java.lang.AssertionError: Assert failed: Only (:require [lib.ns :as > alias]*) > > form of :require / :require-macros is supported > > (and expr (= :as kw)) > > > > > > > > On Monday, June 4, 2012 7:46:40 AM UTC+5:30, Michał Marczyk wrote: > >> > >> (:use-macros [enfocus.macros :only [at content]]) > >> > >> Note :use(-macros) is only supported with :only in ClojureScript. > >> > >> Cheers, > >> Michał > >> > >> > >> On 3 June 2012 21:20, Murtaza Husain <murtaza.hus...@sevenolives.com> > >> wrote: > >> > Hi, > >> > > >> > I am using enfocus where the macros can be used in this manner (from > >> > enfocus's site)- > >> > > >> > (ns my.namespace > >> > > >> > (:require [enfocus.core :as ef]) > >> > > >> > (:require-macros [enfocus.macros :as em])) > >> > > >> > (defn start [] > >> > > >> > (em/at js/document > >> > > >> > [“body”] (em/content “Hello world!”)) > >> > > >> > However I would like to directly use the "at" and "content" macros. > In > >> > clojure this can be done by importing the namespaces using the :use > >> > form. > >> > Can I do the same in clojurescript? > >> > > >> > Thanks, > >> > Murtaza > >> > > >> > -- > >> > 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 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 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