Malvolio
Malvolio is a HTML templating library, which you can use both on your server and in a browser. You can build complex layouts quickly and efficiently. We've found that Malvolio make it easy to write composable code, where you can use Rust's built in features for abstraction (functions, traits, etc) to build more easily maintainable applications. Combined with Rust's strong type system you should be able to pretty fearlessly refactor your applications into something you'd actually like to work on again, rather than just handing off to the next unlucky person.
Usage
Malvolio should be relatively simple to use, especially if you have used other libraries which offer "builder-syntax" style APIs.
A quick couple of examples (see the examples and documentation for more details).
.attribute
.child
.child
new
/* Note that this example DOES NOT COMPILE as is because it is part of a function which it was taken
from and without which all the variables are not correctly defined. */
default
.head
.body
Examples
We haven't provided any explicit examples per-se, but we are in the process of writing a web application with Malvolio which might be helpful when trying to work out how to use the library. The source code is on Github.
Documentation
Malvolio has API docs which are hosted on docs.rs.
If it's confusing you though please do consider raising an issue on our Github repository (yes, that is the correct repository :-) )