You cannot post messages because only members can post, and you are not currently a member.
Description:
Discussion of the Compojure web framework for the Clojure language.
|
|
|
Using different middleware with different routes
|
| |
Hi all, First - thanks James for this library and all the others you've put out in the world. I'm noob-ish to Compojure (and Clojure web programming in general) so I admit I may not have grokked it enough yet. I'm trying to create a site that uses lib-noir's 'wrap-force-ssl' [1] middleware (which redirects any plain http request to https), but only for... more »
|
|
Dependency problem when running `lein ring server`
|
| |
Hi, I'm diving into learning compojure to build a REST service. I followed the Getting Started page of compojure but when I try to run `lein ring server`, I get the following error messages: Could not transfer artifact org.apache.commons:commons-par ent:pom:22 from/to central ([link] Checksum validation... more »
|
|
Dependency problem when running `line ring server`
|
| |
Hi, I'm diving into learning compojure to build a REST service. I followed the Getting Started page of compojure but when I try to run `lein ring server`, I get the following error messages: Could not transfer artifact org.apache.commons:commons-par ent:pom:22 from/to central ([link] Checksum validation... more »
|
|
How to build these routes
|
| |
Hello all, I am trying to understand how to build the routes for the following urls but it seems that I can't quite get them right: The first one is: [link] The above is a GET request with two query parameters, foo and bar and both of them should only accept numeric values.... more »
|
|
Logging in Compojure
|
| |
What does everyone use to log requests in Compojure? Is there a standardised piece of middleware that provides all of the functionality? It seems like a common feature that Compojure is missing at the moment.
|
|
Baffling route/resource behavior: works on some routes but not others
|
| |
I'm new here and have appreciated the archived answers as I learn by working on a compojure application. I apologize if this is a newby question, but after several hours of experimentation, I can't figure out why resources are being served with reference to resources/public on some routes, but not others, when the routes are being wrapped at the same time.... more »
|
|
passing config on commandline
|
| |
Hi there ; Is there a way i can pass configurations to compojure on commandline ? e.g java -jar myapp.jar -config settings.yml Asked differently: I want to run my app as a jar file. How do i pass config data such as database url ? Josh
|
|
Compojure with large project
|
| |
Hi Are there any tutorials or code samples showing how to use Compojure for a large project (that includes tests)? All of the tutorials and code examples I have seen are for really small projects and do not show how to test them, so it is really difficult for me to understand how I would use Compojure on... more »
|
|
Nested routes problem
|
| |
Hi. This is my first time using Compojure, and I'm trying to set up some nested routes.
Here's what I'm after:
/:locale/ -> Home (with locale binding)
/:locale/search -> Search (with locale binding)
So far I've tried doing:
*(defn controller-routes [locale]*
* (routes*
* ((home/c-routes locale)*... more »
|
|
|