Hi,

If you AOT compile the clojure webapp in a jar, you're presumably in a
preproduction or production delivery process, and there I guess things will
not be very dynamic anymore.
Then, you could consider adding to your AOT compilation script to create a
summary of all your controllers in a generated central file.

Your framework could either try to work by scanning for source files in dev
mode, or by checking the generated central file otherwise.
The presence or absence of the central file could also be the dev/production
mode flag.

HTH,

-- 
Laurent

2009/8/28 ngocdaothanh <ngocdaoth...@gmail.com>

>
> Hi all,
>
> To have dynamic to study Clojure, I would like to create a pluggable
> (like Rails Engines) web framework based on Compojure. It will add
> some conventions like:
> * Controllers files are prefixed with "c-", ex: src/main/clojure/myapp/
> c-article.clj
> * To make controllers pluggable, routes are not defined in a central
> place, but defined in controllers themselves. On startup, the
> framework will scan all controllers to collect routes.
>
> It is simple if there are source files of the controllers. The
> framework can find all .clj files with the "c-" prefix in the project
> directory and load them on startup.
>
> But if the .clj files are compiled into a .war file without source
> code in it, there will be no .clj files. Can you give advices on how
> to solve this bootstrap process?
>
> Thanks all,
> Ngoc.
>
> >
>

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