* Parse many literals along side idents in names
* Accept ints as literals
We will not accept floats because `123.123` is a float literal,
but `123 .123` is a int literal followed by a class called `123`.
This could be confusing so it will not be accepted.
Ints can have leading zeros, like `0123`, but this is not guarranteed by
the rust compiler to always work, which could cause future errors.
An example would be truncating `001` to `1`.
* Limit accepted literals using existing function
* Update error output for non-string-literal
* Test output of ints with specified type
This outputs exactly what is written, which is the obvious behaviour
* Use nightly version to generate output
Previous verison was not using nightly, causing errors in the automated
test that are using nightly
* Replace "byte_string" with "raw_string" in test
---------
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
* 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>
* Update `axum-core` depedency to 0.2
* Update doctest to use Axum 0.5
* Update CHANGELOG.md regarding axum
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
* Use explicitly-named args in `impl_render_with_display`
Implicitly-named args were failing on Rust 1.57 (but worked on Nightly).
* Fix macro formatting
Also add a TODO comment to revert later.
Co-authored-by: Chris Wong <lambda.fairy@gmail.com>
* 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
# 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 #96; 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.