On Oct 4, 10:52 pm, Glen Stampoultzis <
gst...@gmail.com> wrote:
> On 21 September 2010 07:15, Constantine Vetoshev <
gepar...@gmail.com> 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)