Commit graph

24 commits

Author SHA1 Message Date
Chris Wong
2213c0dc32 Move escaping routines into a shared maud_htmlescape crate 2017-07-29 20:03:00 +12:00
Chris Wong
88c8a7e8c9 Revert "Silence collapsible_if warnings ()"
This reverts commit a72877cb55.
2017-07-23 13:58:42 +12:00
Chris Wong
a72877cb55 Silence collapsible_if warnings () 2017-07-08 20:21:04 +12:00
Chris Wong
f8f0b0049f Travis: show commit range in tab checker 2017-03-07 21:46:02 +13:00
Chris Wong
d8fa8b18fa Travis: forbid tabs 2017-03-07 21:36:51 +13:00
Chris Wong
7925fbad43 Travis: add cargo-clippy to $PATH 2016-12-17 14:18:48 +13:00
Chris Wong
2063e61211 Travis: don't fail the build if Clippy is broken 2016-12-12 21:33:50 +13:00
Chris Wong
e05af0a326 Add maud_extras crate
Closes 
2016-11-22 22:17:15 +13:00
Chris Wong
a3908faf24 Travis: run Clippy :) 2016-11-06 12:49:44 +13:00
Chris Wong
fedaded75a Release 0.11.1 2016-09-25 12:50:33 +13:00
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
Chris Wong
0379073308 Add iron-maud to Travis 2016-09-20 23:37:10 +12:00
Chris Wong
c68f98d3a7 Expose Escaper type 2015-09-12 18:48:14 +12:00
Chris Wong
dd97989a2b Travis: Use Rust Nightly 2015-05-26 22:35:10 +12:00
Chris Wong
054453be88 Travis: use container-based infrastructure
http://docs.travis-ci.com/user/workers/container-based-infrastructure/
2015-04-15 18:18:12 +12:00
Chris Wong
4653b2e2d8 Add html_debug! macro; remove print-expansion feature 2015-04-13 20:41:12 +12:00
Chris Wong
e5711929e3 print-expansion for all your expansion printing needs 2015-04-11 10:19:28 +12:00
Chris Wong
9b1ba74b7d Simplify Travis script 2015-02-27 17:26:14 +13:00
Chris Wong
6f08b62922 Abandon all hope of getting doc uploads to work 2015-01-29 14:57:28 +13:00
Chris Wong
9abc8003f3 Update Rust CI token (again) 2015-01-28 21:54:34 +13:00
Chris Wong
f1ec5b79e8 Update Rust CI token 2015-01-19 17:07:53 +13:00
Chris Wong
2ec018b00d Upload docs to rust-ci 2014-12-19 12:44:03 +13:00
Chris Wong
b40103d66f Fix Travis 2014-12-19 12:41:16 +13:00
Chris Wong
34031b2f95 Add Travis 2014-12-17 21:33:52 +13:00