#| -*-Scheme-*-
-$Id: mod-lisp.scm,v 1.8 2004/10/31 00:01:26 cph Exp $
+$Id: mod-lisp.scm,v 1.9 2004/11/01 04:56:51 cph Exp $
Copyright 2003,2004 Massachusetts Institute of Technology
(run-hooks-in-list mod-lisp-before-expander-hooks request)
(call-with-output-string
(lambda (port)
- (fluid-let ((*current-request* request)
+ (fluid-let ((*in-mod-lisp?* #t)
+ (*current-request* request)
(*current-response* response)
(*current-pathname* pathname)
(expander-eval
(define mod-lisp-before-expander-hooks (make-hook-list))
(define mod-lisp-after-expander-hooks (make-hook-list))
+(define (in-mod-lisp?) *in-mod-lisp?*)
+
+(define *in-mod-lisp?* #f)
(define *current-request*)
(define *current-response*)
(define *current-pathname*)
#| -*-Scheme-*-
-$Id: ssp.pkg,v 1.10 2004/10/30 05:28:20 cph Exp $
+$Id: ssp.pkg,v 1.11 2004/11/01 04:56:58 cph Exp $
Copyright 2003,2004 Massachusetts Institute of Technology
http-request-user-name
http-response-header
http-status-response
+ in-mod-lisp?
mod-lisp-expander
server-root-dir
start-logging-requests
#| -*-Scheme-*-
-$Id: xhtml-expander.scm,v 1.3 2004/10/27 20:04:15 cph Exp $
+$Id: xhtml-expander.scm,v 1.4 2004/11/01 04:57:05 cph Exp $
Copyright 2002,2003,2004 Massachusetts Institute of Technology
(expand-xhtml-file pathname port)))
(define (expand-xhtml-file pathname port)
- (http-response-header 'content-type (html-content-type))
+ (if (in-mod-lisp?)
+ (http-response-header 'content-type (html-content-type)))
(let ((document
(read/expand-xml-file pathname
(make-expansion-environment pathname))))