Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix hiccup.page/xhtml docstring
  • Loading branch information
weavejester committed Jan 15, 2017
1 parent 6e2d5ba commit c630455
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/hiccup/page.clj
Expand Up @@ -41,10 +41,14 @@

(defmacro xhtml
"Create a XHTML 1.0 strict document with the supplied contents. The first
argument may be an optional attribute may. The following attributes are
argument may be an optional attribute map. The following attributes are
treated specially:
:lang - The language of the document
:encoding - The character encoding of the document, defaults to UTF-8."
`:lang`
: The language of the document
`:encoding`
: The character encoding of the document (defaults to UTF-8)."
[options & contents]
(if-not (map? options)
`(xhtml {} ~options ~@contents)
Expand Down

0 comments on commit c630455

Please sign in to comment.