Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はnoirを使おうとしていますが、デフォルトのチュートリアルで提供されているチュートリアルに従っており、このコードを使用しています
(defpage "/my-page" [] (html5 [:h1 "This is my first page!"]))
ただし、clojureはエラーをスローし、動作を拒否します。
名前空間宣言はどのように見えますか?
たぶん、あなたはuseingdefpageしていないでしょうhtml5。
use
defpage
html5
defpagenoir.core名前空間にあり、html5(hiccup.page-helpershiccup version <1)またはhiccup.page(hiccup version> = 1)名前空間にあります。
noir.core
hiccup.page-helpers
hiccup.page
noirテンプレートを使用した場合、これらがすでに含まれている可能性は十分にあります。