On Mar 26, 8:35 am, "John D. Hume" <duelin.mark...@gmail.com> wrote:
> On Wed, Mar 25, 2009 at 12:05 PM, Parth <parth.malwan...@gmail.com> wrote:
> > I have split up the foo namespace across multiple files. So,
> > I have the following now:
>
> > src/org/ppm/foo.clj -> org.ppm.foo
> > src/org/ppm/bar.clj -> org.ppm.foo
> > src/org/ppm/baz.clj -> org.ppm.foo
>
> > With foo.clj using the ns :load for loading bar and baz.
>
> > (ns org.ppm.foo
> >  (:load "bar" "baz"))
>
> > This meets my needs well as the code is split in
> > logical units while exposing the same namespace
> > to the end user.
>
> You may want to take a look at 
> compojure.ns-utils/immigrate.http://github.com/weavejester/compojure/tree/master
> It just creates public vars pointing at all the public vars in the
> source namespace.
>
> -hume.
> --http://elhumidor.blogspot.com/

Thats a neat way to do it. Thanks for pointing it out.

Parth


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