6 lines
151 B
HTML
6 lines
151 B
HTML
@use models::Coord;
|
|
|
|
@(coords: &[Coord])
|
|
@if let Some((c, rest)) = coords.split_first()
|
|
{ data-positions="[[@c.x,@c.y]@for c in rest {,[@c.x,@c.y]}]"}
|