lein-noir icon indicating copy to clipboard operation
lein-noir copied to clipboard

use hiccup.core required in default welcome.clj?

Open uvtc opened this issue 13 years ago • 2 comments

Upon creating a new lein project, the default page tells me to get going by adding the following to welcome.clj:

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

but the html symbol is not resolved. Had to add a :use hiccup.core :only [html] to the ns macro at the top of welcome.clj.

uvtc avatar Jul 16 '12 20:07 uvtc

See also https://github.com/noir-clojure/noir/issues/134

holyjak avatar Oct 26 '12 22:10 holyjak

It is quite surprising it takes > 3 months to fix something that simple :-(

holyjak avatar Oct 26 '12 22:10 holyjak