Add #:code option to render-html
This commit is contained in:
parent
e92e095ee9
commit
2c35331075
|
@ -91,9 +91,12 @@
|
|||
failure))
|
||||
failure)))
|
||||
|
||||
(define* (render-html #:key sxml (extra-headers '()))
|
||||
(list (append extra-headers
|
||||
'((content-type . (text/html))))
|
||||
(define* (render-html #:key sxml (extra-headers '())
|
||||
(code 200))
|
||||
(list (build-response
|
||||
#:code code
|
||||
#:headers (append extra-headers
|
||||
'((content-type . (text/html)))))
|
||||
(lambda (port)
|
||||
(sxml->html sxml port))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue