lambda-fairy / maud

:pencil: Compile-time HTML templates for Rust
https://maud.lambda.xyz
Apache License 2.0
1.98k stars 132 forks source link

Support attribute spreading with iterators #408

Closed JonahLund closed 4 months ago

JonahLund commented 6 months ago

This PR adds the ability to spread attributes using iterators (#386, #240).

The syntax is as following:

(..)=[attrs] Where attrs is an expression that supports any iterator with tuples (including HashMap) where the name and value implements Display.

The syntax can be changed if this does not suffice