             (hiccup [def :refer :all]
                     [page :refer :all]
                     [element :refer :all]
-                    [core :refer :all])))
+                    [core :refer :all]))
+  (:import [java.io FileNotFoundException]))
 
 (defpartial header
   "A very basic header partial."

    "This website was "
    (link-to "https://github.com/RyanMcG/incise" "incise") "d."]])

(defn stylesheets []
  [(link-to-asset "stylesheets/app.css.stefon")])

(defn javascripts []
   [(link-to-asset "javascripts/app.js.stefon")])

(deflayout page
  "The default page/post layout."

   [:title (str site-title (when title (str " - " title)))]
   [:meta {:name "viewport"
           :content "width=device-width, initial-scale=1.0"}]
   (apply include-css (remove nil? (stylesheets)))]
  [:body#page
   [:div.container
    (header)
    [:div#content content]
    (footer)]
   (apply include-js (remove nil? (javascripts)))])

(register [:post :page] page)
