Question

I am trying to use noir and am following the tutorial that is given at the default tutorial and am using this code

(defpage "/my-page" []
  (html5
    [:h1 "This is my first page!"]))

However, clojure throws up an error and refuses to work.

Was it helpful?

Solution

What does your namespace declaration look like?

Chances are you're not useing defpage and html5.

defpage is in the noir.core namespace and html5 is either in the hiccup.page-helpers (hiccup version < 1) or hiccup.page (hiccup version >= 1) namespace.

If you used the noir template, there's a decent chance these were already included.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top