tag name; optional second item is a map of attributes.
Sequences are processed recursively, so you can use map and other
sequence functions inside prxml.
(prxml [:p {:class "greet"} [:i "Ladies & gentlemen"]])
; =>
Ladies & gentlemen
PSEUDO-TAGS: some keywords have special meaning:
:raw! do not XML-escape contents
:comment! create an XML comment
:decl! create an XML declaration, with attributes
:cdata! create a CDATA section
:doctype! create a DOCTYPE!
(prxml [:p [:raw! "here & gone"]])
; =>
here & gone
(prxml [:decl! {:version "1.1"}])
; =>
Comments top
1 comment(s) for prxml.
A good discussion of how to use this can be found here.
Also, a 1.3 compatible port is available on github.