           (read-char rdr))
         templates))))
 
-#_(preprocess-template "templates/inheritance/inherit-c.html")+#_(let [template "templates/inheritance/inherit-c.html"
+        templates (preprocess-template template)]
+    (find-root template templates)
+    (fill-blocks template templates {}))
      
      templates)))

(defn preprocess-template [filename & [templates]]
  (with-open [rdr (reader (str (resource-path) filename))]
    (loop [templates (assoc (or templates {}) filename {})

(ns selmer.template-parser
  (:require [clojure.java.io :refer [reader]]
            [selmer.util :refer :all]
            [clojure.set :refer [difference]]))

(declare preprocess-template)

