Crate tagu

Source
Expand description

Build xml / html / svg programmatically by chaining structs together or by closures. Instead of using a templating engine, write data/markup that ‘looks like’ rust.

You can find tagu on github and crates.io. Documentation at docs.rs

Modules§

attr
Attribute trait and building blocks
build
Functions to build elements and attributes building blocks
elem
Elem trait and building blocks
prelude
The tagu prelude
stack
tools
Misc functions
util

Macros§

attrs
Chain together a list of attrs
elems
Chain together a list of elements
format_move
Similar to std::format_args!() except has a more flexible lifetime. Shorthand for disp_const(move |w|write!(w,...))

Functions§

append
call Elem::append() without having to have Elem in scope.
render
Render elements to a writer
render_escapable
Render elements to a writer that allows for escaping elements.
stdout_fmt
An std out that implements fmt::Write