[−][src]Crate format_xml
Format XML Templating
Minimal compiletime templating for XML in Rust!
The format_xml!
macro accepts an XML-like syntax and transforms it into a format_args!
invocation.
We say XML-like because due to limitations of the macro system some concessions had to be made, see the examples below.
See the template!
macro to get started with regular formatting.
Macros
escape | Formats the arguments while escaping |
format_xml | Template XML tokens. |
template | Template strings. |
Structs
CommaFmt | Formats tuples as a comma separated items. |
Escape | Escapes |
FnFmt | Implements |
SpacedSet | Formats an iterable with spaces between the items. |
Functions
spaced_comma_set | Formats an iterable with spaces of comma formatted items. |