Horrorshow
A macro-based HTML and XML templating library, compatible with stable rust (currently requires rust >= 1.48).
Features
This crate will degrade gracefully when compiled without std (disable the "std"
feature) and even without alloc (disable the "alloc" feature).
When compiled with alloc but without std:
Template::write_to_io()is not defined.- Templates may only emit errors implementing
ToStringand all such errors are immediately converted to strings.
When compiled with just core:
RenderBoxis no longer defined (no allocation).- The
Template::into_string()andTemplate::write_to_string()are no longer defined. The only template rendering method available isTemplate::write_to_fmt(). - Templates may only emit static
&strerrors, and only the first is recorded.
Example:
extern crate horrorshow;
use *;
use doctype;