Add #:code option to render-html
This commit is contained in:
parent
e92e095ee9
commit
2c35331075
1 changed files with 6 additions and 3 deletions
|
|
@ -91,9 +91,12 @@
|
||||||
failure))
|
failure))
|
||||||
failure)))
|
failure)))
|
||||||
|
|
||||||
(define* (render-html #:key sxml (extra-headers '()))
|
(define* (render-html #:key sxml (extra-headers '())
|
||||||
(list (append extra-headers
|
(code 200))
|
||||||
'((content-type . (text/html))))
|
(list (build-response
|
||||||
|
#:code code
|
||||||
|
#:headers (append extra-headers
|
||||||
|
'((content-type . (text/html)))))
|
||||||
(lambda (port)
|
(lambda (port)
|
||||||
(sxml->html sxml port))))
|
(sxml->html sxml port))))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue