Questions tagged [compojure]

Compojure is an open source web framework for the Clojure programming language.

Compojure

Author: James Reeves
Categories: web
License: EPL
Source code: https://github.com/weavejester/compojure

Dependencies: clojure.contrib, a Java servlet container (e.g. Jetty)

Compojure is a web framework that emphasizes a thin I/O layer and a functional approach to web development. It includes an integrated Jetty web server, but can be used with any Java servlet container.

FAQ

Useful links

442 questions
0
votes
1 answer

caching an xml file in clojure and compojure

I have a webserver running compojure. The webserver reads data from an XML file provided by another server. I don't want to bomb the provider of the file with requests and the XML file doesn't change too often, so I figured I need some kind of…
fuji
  • 1,173
  • 1
  • 10
  • 27
0
votes
1 answer

can't connect my compojure app to postgres db (following heroku tutorial)

i'm following along the heroku compojure tutorial. When I get to the point in the tutorial where a table is created, I get the following error message: user=> (require '[clojure.java.jdbc :as sql]) nil user=> (sql/with-connection (System/getenv…
Ramy
  • 20,541
  • 41
  • 103
  • 153
0
votes
1 answer

cloudbees and compojure database connection

I've been playing around a bit with compojure and cloudbees. so far so good. but to do anything meaningful I need to connect the application (made using the Clickstart) to a database (or vice versa depending on how you look at it). This is the…
Ramy
  • 20,541
  • 41
  • 103
  • 153
0
votes
1 answer

error while composing routes in compojure

The following compojure routes work. (defroutes app-routes (GET "/" [] (index)) (GET "/twauth" [] (tw/authorize)) (ANY "/twcallback" [] (do (tw/callback) (index))) (route/resources "/") …
murtaza52
  • 46,887
  • 28
  • 84
  • 120
0
votes
1 answer

reload middleware that handles explicitly loaded source files

Ring comes with the middleware 'reload' (https://github.com/ring-clojure/ring/blob/master/ring-devel/src/ring/middleware/reload.clj). It's based on ns-tracker (https://github.com/weavejester/ns-tracker). ns-tracker looks through source directories…
hutch
  • 326
  • 1
  • 8
0
votes
2 answers

Clojure noir: Unable to use images in resources/img

I've been starting trying out noir, though I am now having an annoying problem: I have a background image stored at project-folder/resources/public/img/bg.png. And my css file references it as '/img/bg.png'. Though, the browser seems unable to load…
Pedro Rolo
  • 28,273
  • 12
  • 60
  • 94
0
votes
2 answers

Displaying data from two parallel sequences on web page in compojure

I am trying to display content of two sequences on web page. First one of them contains name of the picture, and the second one contains URL to the image. The problem's start when I try to iterate through these two lists (using foreach-like for…
Мitke
  • 310
  • 3
  • 17
1 2 3
29
30