 ;
 ; A few objects need to be accessed by a number of functions: regular
 ; expressions that match the beginning of commented lines, SyntaxHighlighter
-; options, a PegDownProcessor, and a modified LinkRenderer. Of these, the
-; processor and renderer are never dynamically bound. The other variables are
-; bound once for the lifetime of the program, so for the rest of the program
-; they can be considered constant.
+; options, a PegDownProcessor, and a modified LinkRenderer. The dynamic
+; variables are bound once for each file that is processed and are not mutated
+; at any other time.
 ;
 ; ### Parsing variables
 

; style and behaviour information first, followed by visible content, followed
; by the javascript entry-point.

(defn- render-files [paths]
  (println
    "<!doctype html>"
    "<meta charset=utf-8>")


(defn inline-stylesheet []
  (when *stylesheet*
    (inline-css (slurp-file|resource *stylesheet* :continue-on-failure))))

; The resulting look-and-feel resources are included together.

