             [dragon.components.system :as components]
             [dragon.main :as main]
             [dragon.util :as util]
-            [dragon.web.core :as web]
-            [dragon.web.content :as content]
             [markdown.core :as md]
             [selmer.parser :as selmer]
             [taoensso.timbre :as log]

      (log/error "System has aready been initialized.")
      (do
        (alter-var-root #'system
          (constantly ((components/init mode)))
        (alter-var-root #'state (fn [_] :initialized))))
    state))

(defn deinit
  []
  (if (contains? [] state)
    (log/error "System is not stopped; please stop before deinitializing.")
    (do
      (alter-var-root #'system (fn [_] nil))


(defn start
  ([]
    (start :default))
  ([mode]
    (when (nil? system)
      (init mode))
