   {[:.url-text] (do-> (set-attr :href url)
                       (content (if (= "" title) url title)))
    [:.url-ts] (content (.toLocaleString ts))})
+
 
 
 (deftemplate bookmarks "templates/bookmarks.html"

                   :ip "0.0.0.0" :port 9001)))


;; weasel websocket
(if (= "localhost" (.getDomain uri))
  (do
    #_(ws-repl/connect "ws://localhost:9001" :verbose true)
    (figw/watch-and-reload
     ;; :websocket-url "ws://localhost:3449/figwheel-ws" default
     :jsload-callback (fn [] (print "reloaded")))))



;; --- DATABASE ---

(defn get-bookmarks [stage]
  (when stage nil))


;; --- HELPER FUNCTIONS ---



(enable-console-print!)

(def uri (goog.Uri. js/location.href))

