You need to bring the html function into scope. In your NS declaration add (:use [hiccup.core :only [html]])
(defpage "/my-page" []
(html
[:h1 "This is my first page!"]))
Time to get going with our first page. Let's open views/welcome.clj and use (defpage) to add a new page to our site. With that we can go to http://localhost:8080/my-page and see our handiwork.
(defpartial site-layout [& content]
(html5
[:head
[:title "my site"]]
[:body
[:div#wrapper
content]]))
Your problem is with hiccup and not with noir...
If you have more specific question please ask...
On 09/30/2012 03:04 AM, Simone Mosciatti wrote:
Your problem is with hiccup and not with noir...That may very well be true, but I was simply following the directions which appear on the very first webpage after starting Noir for the first time. No such distinction is made on my "new home page" (i.e. localhost:8080). Here is a snip from that very first screen:
give another look at the doc, that i found great for noir http://webnoir.org/
That's quite true, but for a first timer like myself, I found the instructions appearing on the startup page to be rather compelling (if incomplete). It was a bit frustrating when they failed to work (as the above clip shows).
> and to the hiccup one, good as well... https://github.com/weavejester/hiccup
No doubt that's also true! But I continue to call out that there is no mention of hiccup, or the possibility of finding doc there, on that very first page (above). [Yes, hiccup is mentioned on the Noir git page, but that was long forgotten by the time I had my own Noir server running locally.]
Simone - You *are* supposed to be able to follow that page.
You may also find useful this tutorial that I wrote (full disclaimer) that may be in the doc...
I know that my English is horrible and surely you don't have understand
You may also find useful this tutorial that I wrote (full disclaimer) that may be in the doc...