Noir is up and running... time to start building some websites!
(defpage "/my-page" [] (html [:h1 "This is my first page!"]))
Time to get going with our first page. Let's open views/welcome.clj and use (defpage) to add a new page to our site. With that we can go to http://localhost:8080/my-page and see our handiwork.
(defpartial site-layout [& content] (html5 [:head [:title "my site"]] [:body [:div#wrapper content]]))
We really need a layout for all our pages, so let's create a partial (a function that returns html). We'll do that in views/common.clj since all your views will use it.
(defpage "/my-page" [] (common/site-layout [:h1 "Welcome to my site!"] [:p "Hope you like it."]))
Now we'll update our page to use the layout. Just refresh the browser and you'll see your change.
[noir.content.getting-started]
That's it! You've created your own page. Now get rid of this one simply by removing the require for getting-started at the top.