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