         (and (= c \})
              (= nc \})))))
 
-
-(defn buffer-string [^String s 
-                     ^String fileref
-                     ^Long i 
-                     ^Integer max 
-                     ^Long offset 
-                     ^Long line]  
+(defn buffer-string [s fileref i max offset line]
   (let [sb (StringBuffer.)]
     (loop [ni i]
       (if (or (>= ni max)

(defn render-file [filename context]
  (-> filename
      load-template
      (render context)))

       rest-tokens]
      (throw (Exception. (str "parsing error after " a))))))

(defn find-close-tag [tokens]
  (let [[a b c & rest-tokens] tokens]
    (if (and (= (:token a) :open-tag)
             (string? (:token b))
