Commit graph

213 commits

Author SHA1 Message Date
Chris Wong
d8440bd214 Release 0.16.2 2017-03-07 21:47:46 +13:00
Sander Maijers
fc13564a42 Update to rustc 1.17.0-nightly (b1e31766d 2017-03-03)
Closes 

Squashed commit of the following:

commit f88e4dfa5a62f9d6e00ed0980b6fb6d41d36151c
Author: Chris Wong <lambda.fairy@gmail.com>
Date:   Tue Mar 7 20:54:54 2017 +1300

    Convert errant tabs to spaces

commit 65936efca738459412d8818f911601bf5a2870fa
Author: Sander Maijers <S.N.Maijers@gmail.com>
Date:   Mon Mar 6 17:15:20 2017 +0100

    Refactor to make more generic

commit dc16b665854f1d63f5dd8d4db5c3f9390b1e6cee
Author: Sander Maijers <S.N.Maijers@gmail.com>
Date:   Thu Mar 2 16:47:52 2017 +0100

    Adjust to make compatible with current `libsyntax`

    Was broken since rustc nightly 2017-03-01.
2017-03-07 20:59:51 +13:00
Chris Wong
23399225c3 Add juicy metadata to Cargo.toml 2017-02-17 22:23:44 +13:00
Chris Wong
7b67fe1e3e Release 0.16.1 2017-02-15 22:26:45 +13:00
Chris Wong
fe08789e3f Make PResult type private
Not sure why it was public in the first place
2017-02-11 17:19:12 +13:00
Chris Wong
9ca984c89b Release 0.16.0 2017-02-06 16:12:58 +13:00
Chris Wong
aa2c586e36 Correct maud::DOCTYPE_HTML to maud::DOCTYPE
Closes  (nice)
2017-02-06 15:55:29 +13:00
Chris Wong
4d4ba6c59b Release 0.15.0 2017-01-26 20:15:49 +13:00
Chris Wong
e577411356 Update to rustc 1.16.0-nightly (83c2d9523 2017-01-24) 2017-01-26 16:59:07 +13:00
Chris Wong
f21d1b578e Update to rustc 1.16.0-nightly (1a2ed98d3 2017-01-13) 2017-01-15 15:37:13 +13:00
Chris Wong
c849d9efdf Use if_chain from crates.io 2016-12-29 12:20:08 +13:00
Chris Wong
b2ff33fea6 Use a more flexible if_chain! macro 2016-12-27 21:27:54 +13:00
Chris Wong
f991ebaa78 Lint against PreEscaped("<!DOCTYPE html>")
See 
2016-12-27 21:27:54 +13:00
Chris Wong
98d0402d87 Add #[allow(unused_imports)] to generated code
This prevents a warning when the trait is already in scope.
2016-12-27 21:24:49 +13:00
Chris Wong
c57ee6e683 Remove RenderOnce
Closes 
2016-12-23 20:38:53 +13:00
Chris Wong
fb935c2e13 Release 0.14.0 2016-11-24 20:34:45 +13:00
Chris Wong
1859f1635c Update Rust
rustc 1.15.0-nightly (7b3eeea22 2016-11-21)
2016-11-23 22:33:04 +13:00
Chris Wong
585ed3851b Implement toggled classes
Closes 
2016-11-19 15:59:33 +13:00
Chris Wong
8f77990e8c Remove unnecessary #[feature(conservative_impl_trait)] 2016-11-19 15:59:06 +13:00
Chris Wong
68feeeff1b Change empty attribute syntax to use [square brackets]
Closes 
See 
2016-11-17 20:39:02 +13:00
Chris Wong
4b81039d2d Flatten substitutions from macro_rules expansion
This fixes a compile error with the test `misc::issue_23`.
2016-11-16 18:03:23 +13:00
Chris Wong
39602a075c Implement let expressions
Closes 
2016-11-12 14:46:49 +13:00
Chris Wong
202cc8decf Fix Clippy warnings 2016-11-06 12:40:57 +13:00
Chris Wong
c614478bd5 Release 0.13.0 2016-11-03 23:17:34 +13:00
Chris Wong
181bb0583e Update Rust 2016-11-03 22:47:54 +13:00
Utkarsh Kukreti
553a6bc037 Add support for @while and @while let.
Fixes .
2016-10-19 21:46:37 +05:30
Chris Wong
7f7deb7af5 Remove #![feature(question_mark)]
Apparently that feature is stable now
2016-10-17 21:41:33 +13:00
Chris Wong
c70aa3c7f0 Release 0.12.0 2016-10-09 20:18:34 +13:00
Chris Wong
9fa87721e6 Rewrite Render and RenderOnce traits
... to make them more user-friendly.

Closes 
2016-10-08 21:50:59 +13:00
Chris Wong
ba2233f783 Don't put let _ = in front of every statement
This was useful when the `Render*` traits returned `std::fmt::Result`,
but now they're just cruft.
2016-10-06 12:29:07 +13:00
Chris Wong
f48966b5bb Fix test breakage oh no 2016-10-05 20:51:16 +13:00
Chris Wong
4284875869 Change escaper to use bytes instead of chars
This removes the overhead from UTF-8 encoding, and makes us faster than
Horrorshow again :)
2016-10-05 20:43:24 +13:00
Chris Wong
e98d340825 Pre-allocate a buffer of (roughly) the right size
Closes 
2016-10-02 17:48:01 +13:00
Chris Wong
fedaded75a Release 0.11.1 2016-09-25 12:50:33 +13:00
Chris Wong
d34c558f3b Release 0.11.0 2016-09-24 12:17:35 +12:00
Chris Wong
c05bb02d97 Remove call expressions 2016-09-23 19:36:42 +12: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
d7071d1fe9 Release 0.10.0 2016-09-20 23:58:07 +12:00
Chris Wong
83efd5877f Add missing test 2016-09-19 21:42:34 +12:00
Chris Wong
9c35cc557e Update Rust 2016-09-18 12:22:02 +12:00
Chris Wong
7045191c19 Add the "call" keyword back in
This change should make the syntax look a bit less mysterious
2016-09-02 23:23:39 +12:00
Chris Wong
58650b0dd0 Remove dead code 2016-09-01 17:52:51 +12:00
Chris Wong
ed9228fa93 Require parentheses around calls
This simplifies the parser quite a bit
2016-08-22 21:53:23 +12:00
Chris Wong
97a71d7bc3 Require that all literal strings are quoted
Unquoted literals are confusing, annoying to implement, and rarely used.
We're better off without them.
2016-08-18 22:31:12 +12:00
Chris Wong
6a6b23d8ae Switch to new splice syntax using parentheses
Closes 
2016-08-18 22:12:14 +12:00
Chris Wong
61791a6aef @call yay -> @yay 2016-08-15 20:46:04 +12:00
Chris Wong
aded75f01f Add some juicy impl Trait niceness 2016-08-15 20:32:39 +12:00
Chris Wong
d2bf70da9a Allow names with multiple hyphens in a row
Fixes 
2016-08-07 20:39:31 +12:00
Chris Wong
1ec48a3725 Refactor tests
Closes 
2016-07-31 21:34:46 +12:00
Chris Wong
4d66646ece Don't allow namespaces in class and ID names 2016-07-21 21:19:38 +12:00