chinedufn / percy

Build frontend browser apps with Rust + WebAssembly. Supports server side rendering.
https://chinedufn.github.io/percy/
Apache License 2.0
2.26k stars 84 forks source link

IterableNodes: add From<&[View]>, From<&Vec<View>>, and From<Vec<View>> #148

Closed hectorj closed 3 years ago

hectorj commented 3 years ago

For convenience.

Also, in html macro, add parenthesis around statements before calling .into() so that we can use references.

I'm a bit lazy and I don't want to .map(|v| v.render).collect() my views myself 😄

hectorj commented 3 years ago

Ouch, auto-format messed things up. I'll fix it.

chinedufn commented 3 years ago

Awesome, thanks!