<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Building a Clojure Web application with Incanter, Compojure, and Leiningen</title>
	<atom:link href="http://data-sorcery.org/2009/11/29/incanter-webapp/feed/" rel="self" type="application/rss+xml" />
	<link>http://data-sorcery.org/2009/11/29/incanter-webapp/</link>
	<description></description>
	<lastBuildDate>Sat, 05 May 2012 13:46:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: PauloC</title>
		<link>http://data-sorcery.org/2009/11/29/incanter-webapp/#comment-869</link>
		<dc:creator><![CDATA[PauloC]]></dc:creator>
		<pubDate>Thu, 11 Nov 2010 12:51:37 +0000</pubDate>
		<guid isPermaLink="false">http://incanter-blog.org/?p=1109#comment-869</guid>
		<description><![CDATA[I managed to update the code in this post for use with the present libraries.

In project.clj, dependencies are as follow:
&lt;code&gt;
:dependencies [[org.clojure/clojure &quot;1.2.0&quot;]
                 [org.clojure/clojure-contrib &quot;1.2.0&quot;]
                 [compojure &quot;0.5.2&quot;]
                 [ring/ring-jetty-adapter &quot;0.3.1&quot;]
                 [hiccup &quot;0.3.0&quot;]
                 [incanter &quot;1.2.3-SNAPSHOT&quot;]]
&lt;/code&gt;

The function that generates the graphic should return the whole header:
&lt;code&gt;
{:status  200 
     :headers {&quot;Content-Type&quot; &quot;image/png&quot;} 
     :body    in-stream}))		
&lt;/code&gt;

Finally, main is changed to:
&lt;code&gt;
(defn -main [&amp; args]
	(run-jetty example {:port 8080}))
&lt;/code&gt;

The HTML generation has changed a bit (now it is dome by hiccup). Here is a &lt;a href=&quot;https://github.com/ericlavigne/testbuilder/blob/master/src/testbuilder/core.clj&quot; rel=&quot;nofollow&quot;&gt;good example&lt;/a&gt; of the new library usage.]]></description>
		<content:encoded><![CDATA[<p>I managed to update the code in this post for use with the present libraries.</p>
<p>In project.clj, dependencies are as follow:<br />
<code><br />
:dependencies [[org.clojure/clojure "1.2.0"]<br />
                 [org.clojure/clojure-contrib "1.2.0"]<br />
                 [compojure "0.5.2"]<br />
                 [ring/ring-jetty-adapter "0.3.1"]<br />
                 [hiccup "0.3.0"]<br />
                 [incanter "1.2.3-SNAPSHOT"]]<br />
</code></p>
<p>The function that generates the graphic should return the whole header:<br />
<code><br />
{:status  200<br />
     :headers {"Content-Type" "image/png"}<br />
     :body    in-stream}))<br />
</code></p>
<p>Finally, main is changed to:<br />
<code><br />
(defn -main [&amp; args]<br />
	(run-jetty example {:port 8080}))<br />
</code></p>
<p>The HTML generation has changed a bit (now it is dome by hiccup). Here is a <a href="https://github.com/ericlavigne/testbuilder/blob/master/src/testbuilder/core.clj" rel="nofollow">good example</a> of the new library usage.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PauloC</title>
		<link>http://data-sorcery.org/2009/11/29/incanter-webapp/#comment-863</link>
		<dc:creator><![CDATA[PauloC]]></dc:creator>
		<pubDate>Mon, 08 Nov 2010 14:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://incanter-blog.org/?p=1109#comment-863</guid>
		<description><![CDATA[Hi,

I know this post is almost one year old, but would someone help me to run this? I downloaded Incanter and tried to build the corresponding example. &quot;lein compile&quot; fails like this: 
&quot;Compiling simple_web_app
Exception in thread &quot;main&quot; java.io.FileNotFoundException: Could not locate clojure/contrib/seq_utils__init.class or clojure/contrib/seq_utils.clj on classpath:  (control.clj:9)&quot;

Any ideas?]]></description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I know this post is almost one year old, but would someone help me to run this? I downloaded Incanter and tried to build the corresponding example. &#8220;lein compile&#8221; fails like this:<br />
&#8220;Compiling simple_web_app<br />
Exception in thread &#8220;main&#8221; java.io.FileNotFoundException: Could not locate clojure/contrib/seq_utils__init.class or clojure/contrib/seq_utils.clj on classpath:  (control.clj:9)&#8221;</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bahman Movaqar</title>
		<link>http://data-sorcery.org/2009/11/29/incanter-webapp/#comment-823</link>
		<dc:creator><![CDATA[Bahman Movaqar]]></dc:creator>
		<pubDate>Sun, 12 Sep 2010 16:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://incanter-blog.org/?p=1109#comment-823</guid>
		<description><![CDATA[Nice one. 
I was looking for a Compojure kick-start and this article gives me what I need to understand Compojure.

Thank you,

--
Bahman]]></description>
		<content:encoded><![CDATA[<p>Nice one.<br />
I was looking for a Compojure kick-start and this article gives me what I need to understand Compojure.</p>
<p>Thank you,</p>
<p>&#8211;<br />
Bahman</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liebke</title>
		<link>http://data-sorcery.org/2009/11/29/incanter-webapp/#comment-800</link>
		<dc:creator><![CDATA[liebke]]></dc:creator>
		<pubDate>Fri, 25 Jun 2010 11:00:18 +0000</pubDate>
		<guid isPermaLink="false">http://incanter-blog.org/?p=1109#comment-800</guid>
		<description><![CDATA[That is true, Compjure 0.4 was a complete refacter of the library.]]></description>
		<content:encoded><![CDATA[<p>That is true, Compjure 0.4 was a complete refacter of the library.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tyler</title>
		<link>http://data-sorcery.org/2009/11/29/incanter-webapp/#comment-799</link>
		<dc:creator><![CDATA[Tyler]]></dc:creator>
		<pubDate>Fri, 25 Jun 2010 09:15:19 +0000</pubDate>
		<guid isPermaLink="false">http://incanter-blog.org/?p=1109#comment-799</guid>
		<description><![CDATA[This does NOT work with newer versions of Compojure.]]></description>
		<content:encoded><![CDATA[<p>This does NOT work with newer versions of Compojure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://data-sorcery.org/2009/11/29/incanter-webapp/#comment-205</link>
		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Sun, 03 Jan 2010 09:27:29 +0000</pubDate>
		<guid isPermaLink="false">http://incanter-blog.org/?p=1109#comment-205</guid>
		<description><![CDATA[oops.. i just noticed you already had another post up about this exact thing.  i&#039;m a little behind on reading the blog :)]]></description>
		<content:encoded><![CDATA[<p>oops.. i just noticed you already had another post up about this exact thing.  i&#8217;m a little behind on reading the blog :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://data-sorcery.org/2009/11/29/incanter-webapp/#comment-204</link>
		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Sun, 03 Jan 2010 02:24:32 +0000</pubDate>
		<guid isPermaLink="false">http://incanter-blog.org/?p=1109#comment-204</guid>
		<description><![CDATA[Works perfect.
Thanks again.

James]]></description>
		<content:encoded><![CDATA[<p>Works perfect.<br />
Thanks again.</p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://data-sorcery.org/2009/11/29/incanter-webapp/#comment-203</link>
		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Sun, 03 Jan 2010 01:32:04 +0000</pubDate>
		<guid isPermaLink="false">http://incanter-blog.org/?p=1109#comment-203</guid>
		<description><![CDATA[Thanks David,

I&#039;ll give it a whirl.

James.]]></description>
		<content:encoded><![CDATA[<p>Thanks David,</p>
<p>I&#8217;ll give it a whirl.</p>
<p>James.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: liebke</title>
		<link>http://data-sorcery.org/2009/11/29/incanter-webapp/#comment-202</link>
		<dc:creator><![CDATA[liebke]]></dc:creator>
		<pubDate>Sun, 03 Jan 2010 01:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://incanter-blog.org/?p=1109#comment-202</guid>
		<description><![CDATA[Hi James,

To set up interactive development of this app if you&#039;re using Leiningen and Swank, just run:
$ lein deps 
$ lein compile
$ lein swank

(I actually had to change my Incanter dependency to [incanter &quot;1.0-SNAPSHOT&quot;], instead of [incanter &quot;1.0-master-SNAPSHOT&quot;] because lein couldn&#039;t find the later version for some reason.)

Then from emacs, connect to the Swank server with &#039;M-x slime-connect&#039;, then evaluate the example file and start with server from the REPL with:
(simple-web-app/-main)

Make sure the app is working correctly by visiting: http://localhost:8080

Now you should be able to make changes to the running app.

Good luck,
David]]></description>
		<content:encoded><![CDATA[<p>Hi James,</p>
<p>To set up interactive development of this app if you&#8217;re using Leiningen and Swank, just run:<br />
$ lein deps<br />
$ lein compile<br />
$ lein swank</p>
<p>(I actually had to change my Incanter dependency to [incanter "1.0-SNAPSHOT"], instead of [incanter "1.0-master-SNAPSHOT"] because lein couldn&#8217;t find the later version for some reason.)</p>
<p>Then from emacs, connect to the Swank server with &#8216;M-x slime-connect&#8217;, then evaluate the example file and start with server from the REPL with:<br />
(simple-web-app/-main)</p>
<p>Make sure the app is working correctly by visiting: <a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a></p>
<p>Now you should be able to make changes to the running app.</p>
<p>Good luck,<br />
David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://data-sorcery.org/2009/11/29/incanter-webapp/#comment-201</link>
		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Sun, 03 Jan 2010 00:40:01 +0000</pubDate>
		<guid isPermaLink="false">http://incanter-blog.org/?p=1109#comment-201</guid>
		<description><![CDATA[Hi David,

yeah I&#039;ve seen that video. It&#039;s a good demo but it&#039;s not going into the detail of how you would get slime to pick up the clojure version and all the other jars downloaded by lein.

For command line usage I&#039;ve put together this variation of the common bash script, might be useful for others...

http://gist.github.com/267746

If I figure out how to do the same for emacs+slime I&#039;ll post it here.

thanks,
James]]></description>
		<content:encoded><![CDATA[<p>Hi David,</p>
<p>yeah I&#8217;ve seen that video. It&#8217;s a good demo but it&#8217;s not going into the detail of how you would get slime to pick up the clojure version and all the other jars downloaded by lein.</p>
<p>For command line usage I&#8217;ve put together this variation of the common bash script, might be useful for others&#8230;</p>
<p><a href="http://gist.github.com/267746" rel="nofollow">http://gist.github.com/267746</a></p>
<p>If I figure out how to do the same for emacs+slime I&#8217;ll post it here.</p>
<p>thanks,<br />
James</p>
]]></content:encoded>
	</item>
</channel>
</rss>

