Failure in getting started due to missing :use of hiccup.core
Opened this issue · 1 comments
holyjak commented
According to ./src/noir/content/getting_started.clj
I should add (defpage "my-page" [] (html ...))
to views/weclome.clj
. However that fails to compile because the welcome.clj produced by lein-noir doesn't refer to the html macro, i.e. something like (:use hiccup.core)
or (:use [hiccup.core :only [html]])
must be added to the file to avoid RuntimeException: Unable to resolve symbol: html in this context
.
I'm not sure whether it would be better to fix it in the getting started page or in lein noir.
holyjak commented
I see there actually already is an issue for this in lein-noir: ibdknox/lein-noir#11 Still not sure where the fix fits best.