Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.587 kb
(ns foreclojure.config
(:require [ :refer [file]]
[useful.config :refer [load-config]]))
(def config (load-config "config.clj"))
;; Defs both for convenience and compile-time verification of simple settings
(def repo-url (or (:repo-url config)
(throw (Exception. "config.clj needs a :repo-url key"))))
(letfn [(host [key]
(get-in config [:hosts key]))]
(def static-host (host :static))
(def dynamic-host (host :dynamic))
(def redirect-hosts (host :redirects))
(def canonical-host (or dynamic-host "")))
Jump to Line
Something went wrong with that request. Please try again.