>
> This should fix it
>

Nice!

The workaround I'm currently using is

(.use app (js* "require('express')['static']('public')"))

(the closure compiler wont allow require('express').static ... )

Jonathan

On Tue, Apr 24, 2012 at 10:22 PM, Bronsa <brobro...@gmail.com> wrote:

> This should fix it
> http://dev.clojure.org/jira/browse/CLJS-202
>
>
> 2012/4/24 Chris Granger <ibdk...@gmail.com>
>
>> If I remember right, I did this as a workaround:
>>
>> (js/my.ns.express.static "public")
>>
>> Cheers,
>> Chris.
>>
>> On Apr 24, 12:33 pm, David Nolen <dnolen.li...@gmail.com> wrote:
>> > It's a known bug. We should not munge JS reserved words that appear in
>> > property access. Patch welcome.
>> >
>> > David
>> >
>> > On Tue, Apr 24, 2012 at 3:31 PM, Jonathan Fischer Friberg <
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > odysso...@gmail.com> wrote:
>> > > Hi,
>> >
>> > > I want to create a (partially static) server with nodejs and express.
>> > > I want to be able to write something like the following:
>> >
>> > > (def app (.createServer express))
>> >
>> > > (.use app (.static express "public"))
>> >
>> > > (.listen app 8080)
>> >
>> > > The problem here is that clojurescript seems to compile
>> > > the name 'static' to 'static$'.
>> > > No matter how I do it, this is the case.
>> >
>> > > I have tried various tricks with js* and such,
>> > > but all have been unsuccessful.
>> >
>> > > Any ideas?
>> >
>> > > Jonathan
>> >
>> > > --
>> > > 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
>

-- 
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

Reply via email to