             [net.cgrand.enlive-html :as ehtml]
             [kalar-core.config :as config]
             [clojure-csv.core :as csv]
-            [kalar-core.file :as kfile])
+            [tamaki-core.file :as tfile])
   (:import (java.io StringWriter StringReader)
            (java.text SimpleDateFormat)))
 

                 (vals i18-files))))
    ))

(defn- compile-pages
  ([files i18n]
   (let [pages-per-lang (internationalize (map #(.getAbsolutePath %) files) (map #(keyword %) i18n))
         read-pages (reduce (fn [acc lang] (into acc (map (fn [page] (read-page page lang)) (get pages-per-lang lang))))
                            (map #(read-page %) (:default pages-per-lang))
                            (keys (dissoc pages-per-lang :default)))]
     (doseq [page read-pages] (write-page page))))
  ([]
   (compile-pages (.listFiles (io/file (:page-dir (config/read-config)))) (:i18n (config/read-config)))))

(defn load-md-excerpt [^String md]
  (let [compiled (load-markdown md)

      (assoc loaded-md :link (str "/" (name lang-cd) (first (:link loaded-md)))
                       :template (first (:template loaded-md))))))



(defn- internationalize
  [filenames langs]
