       
       :ul { :class :c-exception-report } [
         (template-for [m (expand-exception-stack (-> env :cascade :exception))]
+        	; TODO: Smarter logic about which frames to be hidden
+        	; Currently, assumes only the deepest is interesting.
+        	; When we add some additonal levels of try/catch & report
+        	; it may be useful to display some of the outer exceptions as well
           :li { :class (if (nil? (m :stack-trace)) :c-omitted) } [ (render-exception-map m) ])
       ]
 

		  
		  	(render (-> env :servlet-api :request))
			]		  	

    ]
  ])
  
(create-pipeline :request-exception
  (fn [env exception]
    (debug "Request exception: %s" exception)
    (call-pipeline :render-view (assoc-in env [:cascade :exception] exception) #'exception-report)))
            
  })  
  
(defn transform-stack-trace
  "Transforms a primitive array of StackTraceElements into individual maps; 
  :method-name is a seq of DOM nodes to describe the method and location
  :element is the original StackTraceElement
  :class-name is a keyword (may be nil) used when rendering the frame as an :li element"
  [elements]
  (loop [seen-filter false
  			 queue (map transform-stack-frame (seq elements))
  			 result []]
