;;;; -*- lisp -*- (in-package :it.bese.ucw) (defclass application-inspector (ucw-inspector) ((tal-to-inspect :accessor tal-to-inspect :initform nil :initarg :tal-to-inspect)) (:metaclass standard-component-class)) ;;;; TAL debugging (defclass template-inspector () ((template-name :initarg :template-name) (template-expansion :initarg :template-expansion)) (:metaclass standard-component-class)) (defmethod/cc describe-tal ((self application-inspector)) (call 'template-inspector :template-name (tal-to-inspect self) :template-expansion (preprocess-template (tal-to-inspect self) nil (datum self)))) (defmethod render ((c template-inspector)) (<:html (<:body (<:p "Expansion of template " (<:as-html (slot-value c 'template-name ))) (<:pre (<:as-html (let ((*print-length* nil) (*print-level* nil) (*print-pretty* nil) (*print-miser-width* nil) (*package* (find-package :it.bese.yaclml.tags))) (with-output-to-string (exp) (pprint (slot-value c 'template-expansion) exp))))) (