No description
Find a file
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
.github/workflows Switch rustfmt to nightly () 2021-11-07 02:24:44 +00:00
docs Disallow slashes (/) in void elements () 2021-11-07 23:17:15 +11:00
doctest Remove Iron support () 2021-11-06 11:44:10 +00:00
maud Disallow slashes (/) in void elements () 2021-11-07 23:17:15 +11:00
maud_macros Disallow slashes (/) in void elements () 2021-11-07 23:17:15 +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 Delete maud_htmlescape package () 2021-11-06 11:33:44 +00:00
CHANGELOG.md Disallow slashes (/) in void elements () 2021-11-07 23:17:15 +11:00
CONTRIBUTING.md Update contributing docs and document release process 2021-01-09 19:21:37 +13: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 Delete maud_htmlescape package () 2021-11-06 11:33:44 +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.