Commit graph

54 commits

Author SHA1 Message Date
Chris Wong
434af86ae7
Remove Iron support ()
The Iron framework hasn't been updated in a long time. It still uses outdated versions of libraries like futures 0.1, hyper 0.12, url 1.7. We can clean up the repo by removing it. This will also slightly speed up CI.
2021-11-06 11:44:10 +00:00
Chris Wong
49755007da
Update to Rust 2021 () 2021-11-01 17:18:48 +11:00
Alexandre Macabies
2909e5129c
Add support for Option<T> attributes ()
* Add support for Option<T> attributes

Introduces the `attr=[value]` syntax that assumes `value` is an
`Option<T>`. Renders `attr="value"` for `Some(value)` and entirely
omits the attribute for `None`.

Implements and therefore closes .

* Call `Generator::splice` directly

* Handle struct literals (edge case)

Co-authored-by: Chris Wong <xbuns@google.com>
2021-10-29 16:24:34 +11:00
David Pedersen
4374979a4f
Update to support axum 0.2 ()
* Update to support axum 0.2

* Update changelog
2021-10-16 14:14:27 +11:00
Chris Wong
2700f714bc
Release 0.22.3 () 2021-09-27 11:55:45 +00:00
Marcel Müller
cc62bcbb86
Add axum support ()
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2021-08-17 19:25:07 +10:00
Max Countryman
ba9c7b523c
Tide support ()
This introduces support for Tide by implementing `From` over markup.
Unlike other frameworks, Tide does not seem to provide e.g. a trait
which could instead be implemented. However as demonstrated, this
alternative results in a simple, ergonomic interface.

Consumers may leverage Tide support by using the "tide" feature.

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2021-08-06 14:22:05 +10:00
Benjamin Halsted
3eb4254ffb
Using no_std + alloc ()
Removed references to `std` and replaced them with references to `core` and `alloc`.
Features `rocket` and `iron` still require `std`.

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2021-07-30 22:05:31 +10:00
Chris Wong
4cffcd298b
Remove [Foo] tags from changelog ()
I don't think they add much, and they conflict with mdformat which
escapes square brackets (executablebooks/mdformat#112).

cc 
2021-01-26 22:47:49 +13:00
Chris Wong
87b7c9c2ba
Release 0.22.2 () 2021-01-09 18:01:17 +13:00
Chris Wong
b286c65939
Use Span::mixed_site directly from proc-macro2 ()
Since 1.0.19, `proc-macro2` now provides `Span::mixed_site` directly.
2021-01-09 17:15:43 +13:00
Chris Wong
31bd465b52
Generalize Into impl to From ()
This fixes a Clippy lint.
2021-01-04 21:45:33 +13:00
Chris Wong
167afc65bd
Changelog: make "Unreleased" a link 2020-12-01 10:45:54 +13:00
Chris Wong
d5dec51c3a
Make the ? suffix for empty attributes optional () 2020-11-11 16:47:23 +13:00
Chris Wong
0c9b6f2150
Release 0.22.1 ()
* Release 0.22.1

* Update benchmarks and docs dependencies

* Comrak breaking change
2020-11-02 19:24:13 +13:00
Chris Wong
eac710815b Update changelog for stable support 2020-10-11 20:11:44 +11:00
Rob Ede
31115a6287
Add actix-web v3 support ()
* Add actix-web v3 support

* Add actix-web example

* Resolve changelog PR number

* Make sure that examples are built on CI

* Format Cargo.toml consistently

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2020-10-11 17:22:19 +13:00
Chris Wong
34a79ee706 Release 0.22 2020-06-20 19:57:51 +10:00
Christopher Czyba
fca333cc36 [CHANGELOG] Mention actix-web 2.0.0 support 2020-03-07 13:52:49 +01:00
Chris Wong
d0f29ae410 Change username from lfairy to lambda-fairy 2019-09-14 13:48:59 +12:00
Chris Wong
5e2c9e26a8 Release 0.21.0 2019-07-01 21:03:44 +12:00
Chris Wong
6de2cf1998 Release 0.20.0 2019-01-17 16:01:55 +13:00
Chris Wong
0ccb2829c9 Release 0.19.0 2018-10-20 17:15:57 +13:00
Chris Wong
7bcdc27ab8 Reword 0.18.1 changelog entry 2018-07-21 21:20:41 +12:00
YetAnotherMinion
c47f40c890 fix: update benchmarks to build with 0.18.x, document required compiler feature flags change 2018-07-19 10:36:12 -04:00
Chris Wong
de6f654614 Release 0.18.1 2018-07-18 20:03:44 +12:00
Chris Wong
aadc749715 Release 0.18.0 2018-07-15 21:46:16 +12:00
Chris Wong
67b6fb05e9 Release 0.17.5 2018-05-26 11:57:51 +12:00
Chris Wong
7c63fc138a Release 0.17.4 2018-05-02 20:49:17 +12:00
Chris Wong
41f7744fe1 Release 0.17.3 2018-04-21 17:20:42 +12:00
Chris Wong
62298aec55 Release 0.17.2 2017-11-19 20:12:38 +13:00
Chris Wong
cc833dd624 Update to rustc 1.23.0-nightly (6160040d8 2017-11-18) 2017-11-19 19:55:11 +13:00
Chris Wong
fd43d6c006
Tweak change log entry for 2017-11-12 23:50:29 +13:00
Ernestas Poskus
250c736b11 Bump iron to 0.6.0 version 2017-11-12 23:37:41 +13:00
Chris Wong
b4faef8176 Update to rustc 1.21.0-nightly (f25c2283b 2017-08-15)
Closes 
2017-08-16 20:36:31 +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
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
f68e201ce9 Add proc macro update to change log 2017-07-30 14:22:45 +12:00
Chris Wong
7ac9c04f0e Tweak changelog to link to Rocket 0.3 pull request 2017-07-15 12:50:26 +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
be88fc39d5 Release 0.16.3 2017-04-22 20:00:21 +12:00
Chris Wong
f08458b357 Add 0.16.2 changes to changelog 2017-03-07 22:04:17 +13:00
Chris Wong
7b67fe1e3e Release 0.16.1 2017-02-15 22:26:45 +13:00
Chris Wong
9ca984c89b Release 0.16.0 2017-02-06 16:12:58 +13:00
Chris Wong
4d4ba6c59b Release 0.15.0 2017-01-26 20:15:49 +13:00
Chris Wong
cd5e247f53 Update change log 2016-12-23 20:42:05 +13:00
Chris Wong
fb935c2e13 Release 0.14.0 2016-11-24 20:34:45 +13:00