No description
Find a file
Teodor Källman b3a98c98d5
Parse many literals along side idents in names ()
* 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>
2024-01-04 15:32:25 +11:00
.github/workflows Document that the doctest crate might need updating () 2022-04-10 20:29:41 +10:00
docs Update rocket support to v0.5 () 2023-12-30 09:10:30 +00:00
doctest Update rocket support to v0.5 () 2023-12-30 09:10:30 +00:00
maud Parse many literals along side idents in names () 2024-01-04 15:32:25 +11:00
maud_macros Parse many literals along side idents in names () 2024-01-04 15:32:25 +11:00
.editorconfig Disallow dupe attrs () 2018-07-29 21:21:57 +12:00
.gitignore Test documentation examples in CI () 2021-01-15 17:40:46 +13:00
Cargo.toml Set resolver explicitly in workspace config () 2023-09-27 13:40:38 +10:00
CHANGELOG.md Update rocket support to v0.5 () 2023-12-30 09:10:30 +00:00
CONTRIBUTING.md Document that the doctest crate might need updating () 2022-04-10 20:29:41 +10:00
LICENSE-APACHE First commit 2014-12-17 21:11:56 +13:00
LICENSE-MIT First commit 2014-12-17 21:11:56 +13:00
maud.png HTML5 rocks 2015-01-11 15:05:42 +13:00
README.md Rename "master" to "main" 2021-09-11 20:30:35 +10:00
RELEASE_PROCESS.md Add git tag -a to release process () 2022-09-25 14:24:52 +00:00
rustfmt.toml Enforce merged imports () 2021-09-11 10:42:25 +00:00

HTML5 rocks. maud

CI Cargo API reference

Documentation (source) • API referenceChange log

Maud is an HTML template engine for Rust. It's implemented as a macro, html!, which compiles your markup to specialized Rust code. This unique approach makes Maud templates blazing fast, super type-safe, and easy to deploy.

For more info on Maud, see the official book.