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

  • Attribute trait and building blocks
  • Functions to build elements and attributes building blocks
  • Elem trait and building blocks
  • The tagu prelude
  • Misc functions

Macros

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

Functions

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