 ; file's rendering is wrapped in its own `article` tags.
 
   (each (partial render-file "article") paths)
-  (syntax-highlighter-setup)
-  (outliner-setup))
+  (javascript-setup))
 
 ; The output stream can be a file or standard output or anything
 ; `clojure.java.io/writer` can handle.

         "SyntaxHighlighter.defaults['unindent'] = false;"
         "SyntaxHighlighter.all();")))

(defn outliner-setup []
  (println "<div id=outline></div>")
  (inline-js

         "for (var i = 1; i < children.length; ++i) {"
         "  outline.appendChild(children[i]);"
         "}")))

; And here the two scripts are combined.

(defn javascript-setup []
  (syntax-highlighter-setup)
  (outliner-setup))
    
; ## Output
;
