1
vote
1answer
45 views

Commas in Compojure routes

I'm trying to create a route that has a parameter which contains commas in compojure (GET "/tags/multiple/:tag-names" [tag-names] multiple-tags) but for some reason, whenever I include a comma in ...
1
vote
1answer
49 views

Compojure: optional URL parameter

I want to define a resource in Compojure like this: (ANY "myres/:id" [id] (handler)) and I want the :id to be optional (depending on whether or not the ID is specified my API will behave ...
1
vote
1answer
87 views

What is a Good Web Service Tutorial for Leiningen2, Clojure and Ring? [closed]

I am attempting to learn how to and then create a web service in clojure, and I am looking for tutorials that help illustrate the process. I am new to clojure. It seems like every tutorial is geared ...
0
votes
1answer
86 views

Compojure Example from Clojure in Action Not Working

I am working on the Compojure example from Clojure in Action page 232 (ns compojure-test.core (:gen-class) (:use compojure)) (defroutes hello (GET "/" (html [:h1 "Hello world"])) (ANY "*" ...
1
vote
0answers
68 views

lein ring server does not automatically rebuild

I am writing a small clojurescript project and I followed the numerous lein cljsbuild examples that use lein ring as a development web server. I used to run lein ring server to serve the website on ...
0
votes
1answer
49 views

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 ...
3
votes
2answers
69 views

How to get repeating request parameters in Compojure

I can get to the request parameters easily with: (:foo params) However, when I have a request like this: /api?foo=1&foo=2&foo=3 I only get back "3" while I would expect an array ...
3
votes
2answers
109 views

How to get rid of global data in a Compojure application

On http://mindbat.com/2013/03/clojurewest-2013-day-one-notes/ there is a note that reads: def’ing refs and atoms at the top level is basically global mutable state via singletons, please avoid ...
1
vote
1answer
80 views

Compojure: Nested route issue

I'm trying to set up routes in my application such that: /:locale/ -> Home, with locale binding /:locale/search -> Search, with locale binding Thus far, my routing code is: (defn ...
4
votes
2answers
254 views

How to run/debug compojure web app via counterclockwise (or la clojure)

I'm trying to write my first web app in compojure. I'm using ccw, and I File-New-Project, Clojure Project and use the "compojure" leiningen template. End up with project.clj looking like ...
2
votes
2answers
212 views

Composing templates with Hiccup and Compojure

I'm relatively new to Clojure and Compojure web development. The first issue that I've noticed in the toy example that I'm building is that of HTML templating. I'd like to have support for something ...
0
votes
1answer
123 views

How do I automatically compile coffeescript in Clojure?

I'm building a web application with compojure and Leiningen 2. Is there a way to automatically compile coffeescript into javascript like Ruby on Rails does with sprocket?
0
votes
1answer
94 views

Couldn't get started with clojure kORMa

I am trying to use clojure kORMa with compojure, the webapp is here nepleaks. First I added kORMa dependency [korma "0.3.0-RC4"] lein deps works cool, then created src/hotel/conf/datasource.clj ...
1
vote
1answer
115 views

trying to use ring.middleware.json-params with compojure

I am new to Clojure, leiningen, and java tool chains (but not to lisp, functional programming, software in general). I'm trying to bootstrap some RESTful web services in Compojure. I had no trouble ...
1
vote
1answer
99 views

hiccup form-helper with compojure

Exception: Exception in thread "main" java.io.FileNotFoundException: Could not locate hiccup/form_helpers__init.class or hiccup/form_helpers.clj on classpath: I'm trying to get a toy compojure app up ...

1 2 3 4 5 9
15 30 50 per page