+(define-condition template-error (ctm-rejection) ())
+(define-condition duplicate-template (template-error) ())
+(define-condition undefined-template (template-error) ())
+(define-condition template-arity-error (template-error) ())
+(define-condition unbound-template-variable (template-error) ())
+(define-condition invalid-template-argument (template-error) ())
+(define-condition invalid-template-body (template-error) ())
+(defvar *template-context* nil)