                 (do
                   (.append sb ch)
                   (recur state (.read rdr)))))))
+        (conj! template (.toString sb))
         (persistent! template))))
 
-
 #_(render (parse "home.html") {:name "Bob"})


(declare parse expr-tag)

(defn render [template params]  
  (->> (for [element template] 
         (if (string? element) element (element params)))
       (apply str)))

(defn read-char [rdr]

             (if (= :value tag-type)
               {:tag-value (first content)}
               {:tag-name (first content)
                :args (rest content)})))))

#_(read-tag-info (java.io.StringReader. "% for i in nums %}"))
;{:args ("i" "in" "nums"), :tag-name "for", :tag-type :expr}

#_(read-tag-info (java.io.StringReader. "{ nums }}"))
;{:tag-value "nums", :tag-type :value}
