2

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.

logiblocs
  • 58
  • 5

1 Answers1

5

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.

deterb
  • 3,994
  • 1
  • 28
  • 33