 (ns incise.layouts.core
-  (:require [incise.parsers.parse]
-            [incise.config :as conf])
+  (:require [incise.config :as conf])
   (:refer-clojure :exclude [get]))
 
 (defonce layouts (atom {}))

                     :parse parse-data}))))

(defn register
  "Register a layout function to a shortname"
  [short-names layout-fn]
  (swap! layouts
         merge (zipmap (map name short-names)

  (apply @layouts (name layout-name) more))

(defn Parse->string
  "Take a Parse or parse-like map and pass it through the appropriate layout."
  [parse-data]
  (if-let [layout-key (:layout parse-data)]
    (if-let [layout-fn (get layout-key)]
      (layout-fn (conf/get) parse-data)
