On Oct 4, 10:52 pm, Glen Stampoultzis <[email protected]> wrote:
> On 21 September 2010 07:15, Constantine Vetoshev <[email protected]> wrote:
> > I'd like to announce the release of a working version of appengine-
> > magic, a library designed to make it easier to get started with Google
> > App Engine using Clojure.
> > .. chop ..
>
> I noticed it uses ring out of the box.  I was wondering if this is
> compatible with compojure?  There also seems to be a compojure-gae project
> floating around so I'm a little confused as to which project I should be
> using.

appengine-magic works well with Compojure (version 0.5.x). Any Ring-
compatible framework should also work, as long as it has no
dependencies blacklisted in the App Engine classloader. I should
probably put an example in the documentation, but here's one in the
meanwhile:

(use 'compojure.core)
(require '[appengine-magic.core :as ae])

(defroutes test-1-app-handler
  (GET "/" [] "hello world")
  (ANY "*" []
       {:status 404
        :headers {"Content-Type" "text/plain"}
        :body "not found"}))

(ae/def-appengine-app test-1-app #'test-1-app-handler)

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to