     (catch Exception e
       [:exception (.getMessage e)])))
 
-(defn as-of* 
+(defn as-of*
   "Get the db as of date or latest db if date is nil"
   [conn date]
   (let [db (d/db conn)]

            [ring.middleware.session.cookie :as cookie]
            [ring.middleware.stacktrace :refer (wrap-stacktrace)]
            [ring.middleware.edn :refer (wrap-edn-params)]
            [compojure.core :refer :all] 
            [compojure.handler :as handler]
            [compojure.route :as route]
            [environ.core :refer (env)]

     (assoc {:headers {"Content-Type" "text/html"}
             :status 200
             :body (html5 (views/main-view (d/entity (d/db conn)
                                                     :cljsfiddle/default-fiddle)
                                           username))}
       :session (dissoc session :fiddle)))

   (GET "/fiddle/:ns"
     {{:keys [username] :as session} :session
      {:keys [ns as-of]} :params}
