                      (= tag-close ch2))
         (.append buf ch1)
         (recur ch2 (read-char rdr))))
-    (let [content (->>  (.split (.toString buf ) " ") (remove empty?) (map (memfn trim)))]
+    (let [content (->>  (.split (.toString buf ) " ") (remove empty?) (map (fn [^String s] (.trim s))))]
       (merge {:tag-type tag-type}
              (if (= :filter tag-type)
                {:tag-value (first content)}

      condition
      (:content second-block)
      
      :else [""])
    context-map))

(defn if-handler [[condition] rdr]

(ns selmer.parser
  (:require [selmer.filter-parser :refer [compile-filter-body]]))

(set! *warn-on-reflection* true)

(def ^Character tag-open \{)
(def ^Character tag-close \})
