Commit graph

98 commits

Author SHA1 Message Date
8d721fb430 Undo autoformatting change 2024-10-29 18:31:39 -03:00
2c60c64181 Allow splices in attribute names
Closes 
2024-09-28 11:07:52 -03:00
Chris Wong
0254fe1f81
Fix syntax highlighting for no_run blocks () 2024-08-22 05:43:22 +00:00
Chris Wong
a3c8ea3b4d
Switch to use Comrak for syntax highlighting () 2024-08-22 12:58:41 +10:00
Chris Wong
f0d11ce147
Update to Comrak 0.27 () 2024-08-21 14:33:40 +00:00
Britton Robitzsch
d46ce8c23a
feat: Add support for Submillisecond web framework ()
* feat: Add support for Submillisecond web framework

Adds support for Submillisecond, a Lunatic web framework

* fix: Add submillisecond as doctest feature flag

- adds submillisecond as a feature flag for maud for doctests

* fix: Update formatting for submillisecond

- fix formatting to match rustfmt for submillisecond_support

* Add missing line break

---------

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2024-06-16 11:44:17 +00:00
puetzp
1a2fefe4e5
Update documentation regarding toggles () () 2024-06-16 21:15:27 +10:00
Chris Wong
16f2d2e017 Update docs dependencies 2024-06-03 20:54:00 +10:00
Chris Wong
9bba7d6390
Fix unused imports () 2024-03-10 13:43:23 +00:00
Chris Wong
6e50e675b6
Release 0.26.0 () 2024-01-15 23:21:00 +11:00
thatguydoru
320add87a1
Warp Integration: Yet another web framework support ()
* Add warp integration.

* Add warp to docs

* Update changelog

* Please the mighty rustfmt \o/

* Enable warp feature in doctest

---------

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2024-01-04 15:39:21 +11:00
Paul Jones
0de60b0c86
Update rocket support to v0.5 ()
* update rocket support to v0.5

* added rocket upgrade to CHANGELOG.md

* fix documentation code for rocket v0.5

---------

Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
2023-12-30 09:10:30 +00:00
Vidhan Bhatt
d3b871189f
Support axum v0.7 through axum-core v0.4 and http v1 ()
* chore: bump `axum-core` for use with new `axum` 0.7 release

* chore: bump doctest axum too

* chore: update changelog

* chore: fix changelog

* fix: doctest

* fix: import right resp type

* fix: bump http as well

* fix: doctest

* Update CHANGELOG.md
2023-12-30 22:06:47 +13:00
Soso
8318963db7
Upgrade to syn 2.0.0 ()
* Upgrade syn

* Disable proc-macro-error syn 1.0.0 dependency

* Update docs lockfile
2023-11-26 15:56:12 +11:00
Chris Wong
0d4d194e62 Update docs dependencies 2023-07-02 12:54:57 +10:00
Imbolc
1ab01cca27
Remove AsRef<str> restriction from structs () 2023-05-28 21:11:37 +10:00
Chris Wong
ca7b93c790
Update docs to Rust 2021 () 2023-04-16 07:11:06 +00:00
Chris Wong
bf44196a61
Release 0.25.0 () 2023-04-16 16:54:45 +10:00
Chris Wong
0d1bc320d3
Document that std::fmt::Display is used first
Closes 
2023-04-16 15:18:36 +10:00
Daniel Oliveira
7233cda35e
Add axum to the list of frameworks in docs () 2023-04-04 22:51:57 +10:00
Chris Wong
c42153f20c
Change #![feature(once_cell)] to lazy_cell ()
For 
2023-04-01 09:39:04 +00:00
Chris Wong
cdb9d3a48d
Move optional attribute documentation () 2023-02-13 01:34:34 +00:00
Chris Wong
4f14db7415
Switch documentation to one-sentence-per-line () 2023-02-12 11:19:56 +00:00
Paolo Barbolini
81ace856a4
Bump itoa to v1 () 2022-10-30 00:57:54 +11:00
Chris Wong
8415003cc5
Release 0.24.0 ()
* Release 0.24.0

* Update Cargo.lock for docs
2022-09-25 23:48:38 +10:00
Chris Wong
40dffecd5d
Remove default features from comrak (including clap) () 2022-09-18 12:17:54 +00:00
Chris Wong
f3cf24b341
Update documentation dependencies () 2022-08-12 13:30:42 +00:00
Chris Wong
f43d47d135
Use LazyLock () 2022-06-20 19:55:37 +08:00
Chris Wong
5aa543a6c2
Replace split_n(2, ...) with split_once () 2022-05-13 05:05:36 +00:00
David Pedersen
6e3222f57a
Update to axum-core 0.1 ()
* Update to axum-core 0.1

Together with the new 0.4 release of `axum` we made a new crate called
[`axum-core`]. `axum-core` has a small API and is less likely to receive
breaking changes. Therefore its recommended for libraries to depend on
`axum-core` instead of `axum`.

So this updates `maud` to use `axum-core`.

Note this is a breaking change since `axum-core` requires `axum` 0.4.

[`axum-core`]: https://crates.io/crates/axum-core

* Update changelog link

* fix test
2021-12-08 19:12:00 +11:00
Chris Wong
ca860d09bd
Add a style guide for the docs () 2021-11-29 11:06:56 +00:00
Chris Wong
2f3d68c8a4
Remove blanket Render impl for T: Display ()
Closes 
2021-11-21 19:58:58 +11:00
Chris Wong
12cec48134
Run Clippy on docs builder () 2021-11-11 22:32:37 +11:00
Chris Wong
982c9f4a03
Release 0.23.0 () 2021-11-11 22:08:26 +11:00
Chris Wong
dc6c88fae3
Disallow slashes (/) in void elements ()
# Overview

The following syntax will no longer work:

```rust
html! {
    br /
    link rel="stylesheet" href="styles.css" /
}
```

This should be changed to the following:

```rust
html! {
    br;
    link rel="stylesheet" href="styles.css";
}
```

# Rationale

The `;` syntax was introduced in ; the rationale for it can be found there.

Removing support for the older `/` syntax will simplify the API surface, and allow for the space to be used for other things.
2021-11-07 23:17:15 +11:00
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
3232fb7eca
Delete maud_htmlescape package ()
Replace it with a symlink. Cargo will automatically resolve this to a
normal file on publish.
2021-11-06 11:33:44 +00:00
Chris Wong
45157fc58c
Partially revert for class shorthand ()
On reflection, the extra spaces around classes feels weird to me. Let's revert that (but keep the 2021 edition migration in place).
2021-11-06 21:51:34 +11:00
Chris Wong
49755007da
Update to Rust 2021 () 2021-11-01 17:18:48 +11:00
Chris Wong
0106dfd909
Remove horizontal body padding in docs site
For some reason, this pushes everything off-center.
2021-11-01 16:52:55 +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
c4cd049da8
Fix docs version indicator to include unannotated tags ()
Looks like GitHub's release feature doesn't create annotated tags by default.
2021-10-01 12:58:15 +00:00
Chris Wong
7a839a9a1c Bump maud_htmlescape version for no_std support 2021-09-27 22:01:18 +10:00
Chris Wong
2700f714bc
Release 0.22.3 () 2021-09-27 11:55:45 +00:00
Chris Wong
fe7588fcef
Remove "blazing" ()
It doesn't mean anything.
2021-09-24 10:01:55 +00:00
Chris Wong
dc028116b8
Enforce merged imports ()
Closes 
2021-09-11 10:42:25 +00:00
Chris Wong
46000ee32e Don't show the full executable path for Cargo status line 2021-09-04 16:38:37 +10:00
Chris Wong
5aa70751ac Use \033 instead of \e in Makefile
macOS has an old version of `printf` that only supports octal escapes.
2021-09-04 16:37:41 +10:00
Chris Wong
3ceb70d727
Refactor book builder ()
Move page and nav builders to separate modules.
2021-09-04 06:26:32 +00:00