Package: closure-html

Macro with-element

Lambda List

with-element (name &body body)


  • name -- the element's name, a string/rod
  • body -- an implicit progn

Return Value

the value of body


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

Execute body as an implicit progn. Send a start-element event to the current sink (before the first child element begins, or the current element ends), including all attributes specified using attribute until that point. Send an end-element event after body is finished.

To be used in the extent of an with-html-output invocation.

See also