[CLJS] Disable name mangling for 'static'

2012-04-24 Thread Jonathan Fischer Friberg
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'

Re: [CLJS] Disable name mangling for 'static'

2012-04-24 Thread David Nolen
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

Re: Disable name mangling for 'static'

2012-04-24 Thread Chris Granger
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

Re: Disable name mangling for 'static'

2012-04-24 Thread Bronsa
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

Re: Disable name mangling for 'static'

2012-04-24 Thread Jonathan Fischer Friberg
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

Re: Disable name mangling for 'static'

2012-04-24 Thread David Nolen
Fixed in master thanks. On Tue, Apr 24, 2012 at 4: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,