No description
Find a file
Chris Wong f12efe4299 Rewrite everything to use Strings instead of writers
After fiddling around with zero-allocation solutions, I concluded that
all non-allocating approaches are too annoying to work with in realistic
code. Using closures leads to yak-shaving with lifetimes; and because
Iron needs to take ownership of the response body we often end up
cloning the input data anyway.

Removing this constraint has let me simplify the entire system, removing
a net 300 lines from the library. The `html!` macro no longer takes a
writer, and instead returns a `PreEscaped<String>`. This means that the
result of an `html!` can be spliced directly into another `html!`,
removing the need for the `impl Template` rigmarole.

To rub it in, benchmarks show the new code is in fact *faster* than it
was before. How lovely.
2016-09-23 19:22:22 +12:00
maud Rewrite everything to use Strings instead of writers 2016-09-23 19:22:22 +12:00
maud_macros Rewrite everything to use Strings instead of writers 2016-09-23 19:22:22 +12:00
.gitignore First commit 2014-12-17 21:11:56 +13:00
.travis.yml Rewrite everything to use Strings instead of writers 2016-09-23 19:22:22 +12:00
LICENSE-APACHE First commit 2014-12-17 21:11:56 +13:00
LICENSE-MIT First commit 2014-12-17 21:11:56 +13:00
maud.png HTML5 rocks 2015-01-11 15:05:42 +13:00
README.md Change documentation link 2016-04-27 16:23:31 +12:00
upload-docs Release 0.10.0 2016-09-20 23:58:07 +12:00

HTML5 rocks. maud Build Status Cargo

Maud is a macro for generating HTML.

Documentation

API reference

Warning

The design of Maud is still in flux, and may change or break at any time. Caveat emptor!