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
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 wrote:
>
> Michal thanks for the help.
>
> This is the error that lein-cljsbuild gives me when using :only -
>
> java.lang.Asser
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ł
(: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 wrote:
> Hi,
>
> I am using enfocus where the macros can be used in this manner (from
> enfocus's site)-
>
> (ns my.namespace
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