Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As W55tKQbuRu28Q4xv mentions in a comment, you use <code>(:use compojure ...)</code> in the second example. You should switch to <code>(:use compojure.core ...)</code> and then maybe pull in some additional dependencies for the other functionality that you use (like <a href="http://github.com/weavejester/hiccup" rel="noreferrer"><code>hiccup</code></a> (&lt;- this is a link to the GitHub repo), which is now a separate project, for the HTML-building DSL).</p> <p>My guess is that you're trying to follow some tutorials written for Compojure 0.3 while using Compojure 0.4. The latter does not include the <code>compojure</code> namespace at all and has been slimmed down a lot, with the basic HTTP handling delegated to <a href="http://github.com/mmcgrana/ring" rel="noreferrer"><code>ring</code></a> and various other pieces of functionality spun off to separate projects (like the aforementioned <code>hiccup</code>).</p> <p>Fortunately there are good resources on the 0.3 -> 0.4 transition, e.g. <a href="http://formpluslogic.blogspot.com/2010/04/migrating-from-compojure-032-to-040-and_01.html" rel="noreferrer">this blog entry</a> by Brenton Ashworth. If you can't find something that's been removed from Compojure proper, chances are you'll be able to learn where to find it now from that. See also <a href="http://groups.google.com/group/compojure/browse_thread/thread/4da66a70254671a3/ae5b4157e51ba1c9?#ae5b4157e51ba1c9" rel="noreferrer">this follow-up discussion</a> on Compojure's Google group for errata and additional details.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload