Commit graph

146 commits

Author SHA1 Message Date
Isaac van Bakel
59d9ec9620 Moved compiletests into the maud crate 2018-11-05 23:31:36 +00:00
Chris Wong
6aee65a6f1 Update to rustc 1.31.0-nightly (fddcd316a 2018-10-05) 2018-10-06 18:03:15 +13:00
Chris Wong
35d5204cab Update to rustc 1.30.0-nightly (9395f0af7 2018-09-02) 2018-09-03 20:01:39 +12:00
Chris Wong
66ddbcac98 Remove maud_lints
It's undocumented, it doesn't do much, and it keeps breaking.
2018-09-03 20:01:39 +12:00
Philipp Hansch
e939beb7ac Update actix-web () 2018-08-23 19:36:11 +12:00
Chris Wong
f17e21423e Remove #![feature(use_extern_macros)] 2018-08-18 16:25:15 -07:00
Chris Wong
e273d897cf Parse arbitrary expressions in classes and IDs
Closes 
2018-08-13 16:15:58 -07:00
Chris Wong
0585df11a5 Fix examples and start testing them 2018-08-13 15:34:08 -07:00
Chris Wong
de6f654614 Release 0.18.1 2018-07-18 20:03:44 +12:00
Chris Wong
8dbcdab2bf Update to rustc 1.29.0-nightly (1ecf6929d 2018-07-16)
Closes 
2018-07-18 19:41:47 +12:00
Chris Wong
aadc749715 Release 0.18.0 2018-07-15 21:46:16 +12:00
Chris Wong
a1a0aa0200 Allow omitting the comma on the last match arm 2018-06-22 21:31:08 +12:00
Chris Wong
1f68ef0526
Merge pull request from lfairy/snaggletooth
Require braces around the body of an element
2018-06-20 19:57:23 +12:00
Chris Wong
41aea5f92c Require braces around element bodies 2018-06-16 21:46:28 +12:00
Coleman McFarland
8ce98f689f Build features separately.
Compiling rocket and actix-web together presents problems, since ring - a
native dependency - cannot have more than one version linked.
2018-06-15 20:23:21 +12:00
Coleman McFarland
fd59814f8b impl Responder for actix-web framework
It looks similar to the Rocket implementation, and functionally is also similar:
a syncronous response for PreEscaped<String>

Refs 
2018-06-15 20:23:21 +12:00
Chris Wong
67b6fb05e9 Release 0.17.5 2018-05-26 11:57:51 +12:00
Chris Wong
9d90e94c87
Change macro internals to use an explicit AST () 2018-05-17 20:38:44 +12:00
Chris Wong
7c63fc138a Release 0.17.4 2018-05-02 20:49:17 +12:00
Chris Stadler
e606e64ef2 Enable proc_macro_non_items feature flag 2018-04-28 12:59:24 +12:00
Chris Wong
41f7744fe1 Release 0.17.3 2018-04-21 17:20:42 +12:00
Coleman McFarland
2d6558c769 Use FromIterator<_> for TokenStream
Also remove conservative_impl_trait feature flag, as this is now a
stable feature.

Refs 
2018-04-16 00:54:32 -07:00
Chris Wong
62298aec55 Release 0.17.2 2017-11-19 20:12:38 +13:00
Ernestas Poskus
250c736b11 Bump iron to 0.6.0 version 2017-11-12 23:37:41 +13:00
Chris Wong
d1a44be51d Silence "unknown lint" warning when running not-Clippy 2017-10-07 16:26:45 +13:00
Chris Wong
f6c9e25722 Enable lints on tests and extras; fix maud_doctype lint not firing 2017-10-07 14:45:06 +13:00
Lukas Kalbertodt
97a4bdf30e Add Clone and Copy impl to PreEscaped via derive () 2017-08-26 12:14:13 +12:00
Chris Wong
a902c97091 Allow braces in toggled classes 2017-08-12 16:50:54 +12:00
Chris Wong
080b461f1b Release 0.17.1 2017-08-11 21:15:20 +12:00
Chris Wong
f046b64409 Avoid name collisions when Render trait is already in scope
Closes 
2017-08-11 20:00:10 +12:00
Chris Wong
9fc96ea5c3 Fix docs to use semicolons instead of slashes 2017-08-05 16:42:15 +12:00
Chris Wong
752c4805e4 Release 0.17.0 2017-08-04 22:22:38 +12:00
Chris Wong
1785071f1b Allow terminating void elements with semicolons (;)
When Rust and HTML syntax differ, Maud tends to side with Rust syntax.
This can be seen with string literals, for example, where we use
backslash escapes instead of HTML entities. Using `;` to terminate void
elements is consistent with this idea.

Moreover, this reduces confusion around the generated code. Maud does
not insert an extra slash into the HTML output (as per the spec) but
the syntax may imply otherwise.

This confusion may have been the cause of a [bug I found in the
wild][1], where the code omitted the trailing slash on an `input`
element. I suspect that this is because the author thought that a
trailing slash in the Maud template would lead to one in the HTML
output. Switching to semicolons would prevent this misconception.

[1]: https://github.com/anowell/quasar/pull/3
2017-08-04 20:58:02 +12:00
Chris Wong
8a147fb829 >_< 2017-07-31 22:13:09 +12:00
Chris Wong
c57d41e1a6 Handle conditions which contain braces 2017-07-31 22:03:50 +12:00
Chris Wong
d3586a28f3 Remove braces from let expressions
Also improve spans by passing more of the input through directly
2017-07-31 21:48:11 +12:00
Chris Wong
4a733993c8 Make let expression type ascription test a bit more elaborate
An overly strict parser would choke on the `=` in `Iterator<Item=u32>`,
so this case is worth keeping as a regression test.
2017-07-30 21:17:12 +12:00
Chris Wong
cf403b3f6e Add test for type ascription in let expressions 2017-07-30 21:08:14 +12:00
Chris Wong
2213c0dc32 Move escaping routines into a shared maud_htmlescape crate 2017-07-29 20:03:00 +12:00
Chris Wong
e0c7fcf055 Initial stab at porting to new proc macro interface 2017-07-23 13:58:42 +12:00
Brayden
70f55b9771 Update to Rocket 0.3 ()
Also fixes diff links in CHANGELOG.md.
2017-07-15 12:43:29 +12:00
Chris Wong
04eb61e870 Use docs.rs for hosting API documentation 2017-06-19 21:25:19 +12:00
Chris Wong
348712f3f4 Add #![doc(html_root_url = "...")] attribute 2017-05-13 14:16:41 +12:00
Chris Wong
d8440bd214 Release 0.16.2 2017-03-07 21:47:46 +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
Ferdinand Bachmann
8ab628faa2 Update Rocket dependency to version 0.2.0 ()
* Update Rocket dependency to version 0.2.0

* Change rocket dependency to version range
2017-02-14 22:54:27 +13:00
Chris Wong
9ca984c89b Release 0.16.0 2017-02-06 16:12:58 +13:00
Chris Wong
f858430b51 Update to Iron 0.5.1
See 
2017-01-29 12:37:05 +13:00
Chris Wong
4d4ba6c59b Release 0.15.0 2017-01-26 20:15:49 +13:00