Thanks Jim for taking my side, sort of, I replied to James, that it is
kind of a must to, because I'm doing this for my thesis.
Also I am used to eclipse, Maven is new to me, so that's why I started
using eclipse (first with ccw and clojure).
Jim the dependency is on the ring 0.3.1.
Now it works, but I have issue with: missing utils__init.class or
utils.clj on classpath, i my project.
the clj file is following(it is the template example from
https://github.com/swannodette/enlive-tutorial)
(ns com.bojanjovicic.clojureTest.scrape1
(:require [net.cgrand.enlive-html :as html])
(:use [net.cgrand.moustache :only [app]]
[com.bojanjovicic.clojureTest.scrape1.utils :only [run-server
render-to-response]]))
(html/deftemplate index "clojureTest/template1.html"
[ctxt]
[:p#message] (html/content (:message ctxt)))
;; ========================================
;; The App
;; ========================================
(def routes
(app
[""] (fn [req] (render-to-response
(index {})))
["change"] (fn [req] (render-to-response
(index {:message "We changed the
message!"})))
[&] {:status 404
:body "Page Not Found"}))
(defonce *server* (run-server routes))
(ns com.bojanjovicic.clojureTest.scrape1
(:require [net.cgrand.enlive-html :as html])
(:use [net.cgrand.moustache :only [app]]
[com.bojanjovicic.clojureTest.scrape1.utils :only [run-server
render-to-response]]))
(html/deftemplate index "clojureTest/template1.html"
[ctxt]
[:p#message] (html/content (:message ctxt)))
;; ========================================
;; The App
;; ========================================
(def routes
(app
[""] (fn [req] (render-to-response
(index {})))
["change"] (fn [req] (render-to-response
(index {:message "We changed the
message!"})))
[&] {:status 404
:body "Page Not Found"}))
(defonce *server* (run-server routes))
Thank you again!
On Apr 18, 8:10 am, Jim Downing <
jimdown...@pobox.com> wrote:
> On 16 April 2011 15:42, James Reeves <
jree...@weavejester.com> wrote: