Package: closure-html

Macro with-html-output

Lambda List

with-html-output ((sink &key (name HTML) public-id system-id) &body body)


  • sink -- a HAX/SAX handler
  • name -- root element name, a rod/string
  • public-id -- nil or the Public ID, a rod/string
  • system-id -- nil or the System ID/URI, a rod/string
  • body -- an implicit progn

Return Value

the value of body


Generate hax:start-document and hax:end-document events.

Send a start-document event to the current sink, then execute body as an implicit progn. Afterwards, send an end-element event.


See also